Skip to content

Commit

Permalink
Merge pull request #101 from boesing/bugfix/redis-cluster-clear-by-pr…
Browse files Browse the repository at this point in the history
…efix
  • Loading branch information
boesing authored Jun 22, 2024
2 parents 573ba3b + 41ec197 commit 327f59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RedisCluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ private function searchAndDelete(string $prefix, string $namespace): bool
$redis = $this->getRedisResource();
$options = $this->getOptions();

$prefix = $namespace === '' ? '' : $namespace . $options->getNamespaceSeparator() . $prefix;
$prefix = $namespace === '' ? $prefix : $namespace . $options->getNamespaceSeparator() . $prefix;

/** @var array<array-key,string> $keys */
$keys = $redis->keys($prefix . '*');
Expand Down

0 comments on commit 327f59c

Please sign in to comment.