Skip to content

Conversation

natsimhan
Copy link
Contributor

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-option

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-option
@ukko ukko merged commit 180cbd1 into ukko:master Aug 7, 2019
@ukko
Copy link
Owner

ukko commented Aug 7, 2019

Thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants