spring-projects / spring-projects/spring-data-redis
Support sub second timeout for BRPOP & BLPOP via RedisListCommands.
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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