spring-data-redis icon indicating copy to clipboard operation
spring-data-redis copied to clipboard

Use SET command instead of SETEX

Open ehsanalemzadeh opened this issue 1 year ago • 2 comments

In DefaultValueOperations, the set method with timeout argument calls the setEx command internally. However, SETEX command was deprecated in version 2.6.12 of Redis. According to Redis documentation, it is recommended to replace SETEX with SET using the EX argument. Redis documentation

ehsanalemzadeh avatar Apr 21 '24 11:04 ehsanalemzadeh

Good catch. Do you want to submit a pull request?

mp911de avatar Apr 23 '24 07:04 mp911de

Sure. I will do it soon.

ehsanalemzadeh avatar Apr 24 '24 03:04 ehsanalemzadeh