spring-projects / spring-projects/spring-data-redis

Support sub second timeout for BRPOP & BLPOP via RedisListCommands.

Open
#2,102 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

theme: Redis 6.2 type: enhancement
Dominant language
Java
Stars
1.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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);

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at RedisListCommands and inspect the existing bLPop and bRPop timeout methods and their related implementation paths. Locate the relevant command tests, then verify that the TimeUnit overloads support sub-second timeouts, including MILLISECONDS, and that existing timeout behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, redis
Domain
backend-api-design, database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.