Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change key listing strategy to use SCAN #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

julsemaan
Copy link

This fixed the key listing set leak that occurs when keys are expiring as described in :
https://rt.cpan.org/Public/Bug/Display.html?id=112760

This instead uses the SCAN method of Redis to list the keys.

This has the downside of requiring redis 2.8+ and being slower than the previous implementation.
Also, Test::Mock::Redis doesn't implement the SCAN method so unit tests will only succeed when testing against a real Redis instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant