Skip to content

Redis scan returns nothing #12504

Answered by mgravell
mehditvk8 asked this question in Q&A
Aug 20, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

The count parameter isn't "get me this many results on every page"; it is more of a hint for "do this amount of work" - it can return more or less than that at any point (and frequently returns empty results, especially when used with a filter).

You need to use scan in a loop until you either have enough results, or you get back token 0 which means "all done".

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@mehditvk8
Comment options

@clark-lt
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mehditvk8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants