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

Add scan_callback, hscan_callback, and sscan_callback method to iterate over keys comfortably #170

Merged
merged 6 commits into from
Nov 19, 2023

Conversation

dallaylaen
Copy link
Contributor

@dallaylaen dallaylaen commented Jun 6, 2023

Redis's *SCAN methods are quite cumbersome to use in Perl. This wrapper abstracts away the cursor handling and calls a user-specified callback exactly once per key.

The callback is always expected as the LAST argument as that makes reading the resulting code easier.

@dallaylaen dallaylaen changed the title Add scan_callback method to iterate over keys comfortably Add scan_callback, hscan_callback, and sscan_callback method to iterate over keys comfortably Nov 18, 2023
@dams
Copy link
Member

dams commented Nov 19, 2023

nice, thanks!

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.

2 participants