Skip to content

Conversation

alicebob
Copy link
Owner

This fixes #413:

"count" is allowed to be ignored, and there are some guarantees about which keys show up.

Another way to implement this would be to add a global "version counter", use that as the "cursor", and start the loop from the beginning whenever that changed:

A given element may be returned multiple times. It is up to the application to handle the case of duplicated elements, for example only using the returned elements in order to perform operations that are safe when re-applied multiple times.

https://redis.io/docs/latest/commands/scan/#scan-guarantees

@alicebob alicebob self-assigned this Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scan does not return all records when using the count param and deleting records while iterating
1 participant