Skip to content

Support sub second timeout for BRPOP & BLPOP via RedisListCommands. #2102

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

Open
christophstrobl opened this issue Jun 28, 2021 · 1 comment
Open
Labels

Comments

@christophstrobl
Copy link
Member

Provide an overload that comes with a TimeUnit and convert the value to double in case of MILLISECONDS.

List<byte[]> bLPop(int timeout, TimeUnit timeUnit, byte[]... keys);

List<byte[]> bRPop(int timeout, TimeUnit timeUnit, byte[]... keys);
christophstrobl added a commit that referenced this issue Jun 29, 2021
In cases where the timeout is defined in msec we calculate a precise timeout for the BZPOP* operations.
#2102 will bring this behaviour also to List commands.

Original Pull Request: #2088
@ihaohong
Copy link
Contributor

hi, I‘d like to take this issue 😊

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

No branches or pull requests

3 participants