Skip to content

Commit 48cf3d1

Browse files
committed
initialize RedisAdapter cursor to 0
1 parent 155ac0d commit 48cf3d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Traits/RedisTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ protected function doClear(string $namespace): bool
512512
continue;
513513
}
514514

515-
$cursor = null;
515+
$cursor = 0;
516516
do {
517517
$keys = $host instanceof \Predis\ClientInterface ? $host->scan($cursor, 'MATCH', $pattern, 'COUNT', 1000) : $host->scan($cursor, $pattern, 1000);
518518
if (isset($keys[1]) && \is_array($keys[1])) {

0 commit comments

Comments
 (0)