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

single BLPOP and BRPOP command should be able to block on multiple keys [PATCH] #41

Closed
plastictrophy opened this issue Jun 2, 2010 · 1 comment

Comments

@plastictrophy
Copy link

Currently, redis-rb only allows blocking-pop commands to block against a single key. The Redis protocol is designed to allow a single command to block against several keys, which we rely on in our fork of Resque that uses blocking-pop rather than polling.

Here's our patch, test included:

http://github.com/plastictrophy/redis-rb/commits/bpop_on_keys

@soveran
Copy link
Collaborator

soveran commented Jun 2, 2010

Thanks! Send me a pull request from that commit and I'll apply it.

This issue was closed.
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

No branches or pull requests

1 participant