spring-projects/spring-data-redis

Feature Request: Support HGETDEL, HGETEX and HSETEX from Redis 8.0

Closed this issue · 4 comments

Hello!

Redis 8.0 release added 3 new hash commands:

  1. HGETDEL: https://redis.io/docs/latest/commands/hgetdel/
  2. HGETEX: https://redis.io/docs/latest/commands/hgetex/
  3. HSETEX: https://redis.io/docs/latest/commands/hsetex/

These new command are already supported in Lettuce (Since Release 6.8.0) and Jedis (Since Release 6.0.0)

Feature request: Support these commands in Spring Data Redis's hash operations, similar to the existing: getAndDelete, getAndExpire, setAndExpire methods in value operations.

Hey @xmiao2 ,

The Redis team is planning on contributing this to the spring-data-redis project.

Hi @tishun, @mp911de

Would it be possible for me to contribute to this issue?

Hey @xyraclius,

The Redis team has already started looking into this feature. I'll update this issue and link a PR once there's something reviewable. You're welcome to take a look and leave feedback once it’s posted.

Hey @viktoriya-kutsarova,

Thanks for the update! I’ve also implemented some changes and added tests via Spring Boot for reference:
• Commit changes: 0d9de1b
• Spring Boot test repository: spring-data-redis-hgetdel-hgetex-hsetex

Just sharing this in case it’s helpful as context or reference.