Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3c0d75f

Browse filesBrowse files
Revert "bug #58661 [Cache] Initialize RedisAdapter cursor to 0 (thomas-hiron)"
This reverts commit 61b8de4, reversing changes made to ee6d61b.
1 parent c05fed1 commit 3c0d75f
Copy full SHA for 3c0d75f

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Traits/RedisTrait.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ protected function doClear(string $namespace)
490490
continue;
491491
}
492492

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.