-
Notifications
You must be signed in to change notification settings - Fork 473
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 optional parameter to LPOP/RPOP to pop more than 1 element #594
Conversation
24fceff
to
6b6cb6e
Compare
Thanks @torwig, we can use |
@git-hulk I had a similar idea, but then I read the Redis docs:
and I saw that BLPOP/BRPOP and RPopLPush use just |
@torwig Oooop, my bad that didn't have a check at where's using |
thanks @torwig Whatever i don't think it is a good idea to have |
@ShooterIT I replaced Pop implementation with multi-pop's one and pushed.
? |
I think this idea is better. WDYT @git-hulk |
48ca0d9
to
1fee3b3
Compare
@git-hulk I've just pushed the version with the idea that I mentioned (Pop as PopMulti). |
cool, thanks @torwig |
Yes, I think that retrieves multi elements in |
@ShooterIT Can you help to merge this PR? |
Related TCL-test were copied from the Redis repository.
Method
List::Pop
refactored: output paramstd::string *elem
became the last one for convenience purposes.Please let me know if something should be checked additionally.