Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
januabisconti committed Nov 27, 2024
1 parent 850421a commit 4c37d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SuperCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function putWithTags(string $key, mixed $value, array $tags, ?int $ttl =
}

$pipe->sadd($this->prefix . 'tags:' . $finalKey, ...$tags);
});
}, $connection_name);
} else {
$this->redis->getRedisConnection($connection_name)->set($finalKey, $this->serializeForRedis($value));
if ($ttl !== null) {
Expand Down Expand Up @@ -160,7 +160,7 @@ public function forget(string $key, ?string $connection_name = null): void

$pipe->del($this->prefix . 'tags:' . $finalKey);
$pipe->del($finalKey);
});
}, $connection_name);
} else {
foreach ($tags as $tag) {
$shard = $this->getShardNameForTag($tag, $finalKey);
Expand Down

0 comments on commit 4c37d4e

Please sign in to comment.