Commit 6e9f6d8
authored
Fixed in the example the use of SCAN function
The example of using SCAN did not work properly if $pattern was used.
If we do not test the return is FALSE (end of scan) and we used $pattern (Redis MATCH option) the scan function can return empty lists because of the way it works, but we still have to keep going through the list until the function returns FALSE.
More information on this feature of Redis in the doc with the MATCH option: https://redis.io/commands/scan#the-match-option1 parent 324ae44 commit 6e9f6d8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4548 | 4548 | | |
4549 | 4549 | | |
4550 | 4550 | | |
4551 | | - | |
| 4551 | + | |
4552 | 4552 | | |
4553 | 4553 | | |
4554 | 4554 | | |
| |||
0 commit comments