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

Simple implementation for blpop and brpop #43

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

Simple implementation for blpop and brpop #43

wants to merge 4 commits into from

Conversation

markus-s24
Copy link

I implemented blpop and brpop. But blocking is not easy to implement in SimpleRedisServer, because netty seems to hang if an operation blocks. So the timeout feature is restricted to always wait just for 100 ms.

There is also an issue with the method signature. I added the missing byte[] timeout1 parameter, but the timeout is still present as the last key in key0. Furthermore I am not sure how to decode String from byte[]. Is the encoding always the system encoding or always UTF-8?

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.

1 participant