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

RedisKeyExpiredEvent has an unused generic

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

Nobody has claimed this yet.

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

Description

Current behavior: RedisKeyExpiredEvent has an unused generic argument T.

Expected behavior is one of the following:

  • RedisKeyExpiredEvent does not have a generic argument.
  • Method getValue() in RedisKeyExpiredEvent returns an object of the generic type specified in RedisKeyExpiredEvent. May also require changes to the stored value and the constructor methods.

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 with src/main/java/org/springframework/data/redis/core/RedisKeyExpiredEvent.java, especially the stored value, constructor methods, and getValue(). Determine which of the two expected API directions applies, then make the generic behavior consistent across the class. Done means RedisKeyExpiredEvent no longer has an unused generic or getValue() returns the specified generic type.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, redis
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.