Open earamizu opened 3 years ago
I'm experiencing the same. Did you resolve this on your end?
@thngdude We actually ended up forking it and just adjusting that line of the code.
@earamizu if you'll submit PR I'll merge it.
Thanks
@sarkistlt Sorry for the late reply. I don't think what I ended up doing is an actual fix worth merging, as I really just increased the limit, which has been working fine for our use cases but that wouldn't be ideal for everyone else.
We're using groups to store our keys and then use these groups to delete keys in batches.
It seems that due to this line of the
purgeGroup
function it might be returning a false negative result, scan returns an empty list for some cases that there are keys present for a given group.Here is an example of this happening, when we used RedisInsight:
command used by feathers-redis-cache
scan 0 "MATCH" "abc_123*" "COUNT" "1000"
Output
1) "845" 2) (empty list or set)
command used for testing purposes
scan 0 "MATCH" "abc_123*" "COUNT" "10000"
Output
1) "0" 2) 1) "abc_123-AAAA" 2) "abc_123-BBBBB" 3) "abc_123-CCCCC"