Skip to content

Commit

Permalink
Fix when using RedisCluster (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzv-me authored Apr 30, 2023
1 parent ea5bfc4 commit 293d02c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DebugBar/Storage/RedisStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function find(array $filters = [], $max = 20, $offset = 0)
{
$results = [];
$cursor = "0";
$isPhpRedis = get_class($this->redis) === 'Redis';
$isPhpRedis = get_class($this->redis) === 'Redis' || get_class($this->redis) === 'RedisCluster';

do {
if ($isPhpRedis) {
Expand Down

0 comments on commit 293d02c

Please sign in to comment.