spring-data-redis
spring-data-redis copied to clipboard
Provides support to increase developer productivity in Java when using Redis, a key-value store. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository...
This PR addresses issue #3269 by extracting duplicate duration validation logic into a reusable helper method. ## Changes - Added `isPositiveDuration(Duration)` helper method to eliminate code duplication - Replaced duplicate...
## Refactor: Extract precision API fallback with type-safe enum Remove 66 lines of duplicate try-catch code from RedisTemplate. Replace hardcoded strings with PrecisionCommand enum. Add logging and specific exception handling....
## Summary Extract duplicated precision command fallback logic from `RedisTemplate` into a reusable utility class with type-safe enum constants. ## Current Problem The same try-catch pattern is duplicated across 3...
This change introduces the ability to identify spring-data-redis clients on the server side using the underlying drivers (jedis and lettuce) and the [CLIENT SETINFO](https://redis.io/docs/latest/commands/client-setinfo/) command. As part of the change,...
### Current Code The same validation pattern appears twice: - Line 215: `!sleepTime.isZero() && !sleepTime.isNegative()` - Line 566: `!this.sleepTime.isZero() && !this.sleepTime.isNegative()` ### Proposed Solution Extract this logic into a helper...
#### Summary This PR refactors duplicated TTL computation logic inside DefaultRedisCacheWriter's get method following expression was previously evaluated twice ```java timeToIdleEnabled && withTtl ? ttl : null ``` #### What...
#### Problem In DefaultRedisCacheWriter's get method, following expression is evaluated twice ```java timeToIdleEnabled && withTtl ? ttl : null ``` #### Proposed Improvement Extract the conditional TTL evaluation into a...
## Summary This PR adds static factory methods for `JacksonJsonRedisSerializer` to simplify instantiation and improve code readability. Closes #3252 ## Changes - Added `JacksonJsonRedisSerializer.of(Class)` as a static factory method -...
Hi Team, Hope it is a simple request. Can we add a static factory method for creating instances of **`JacksonJsonRedisSerializer`** in V 4.0? **Example:** `JacksonJsonRedisSerializer serializer = JacksonJsonRedisSerializer.of(Person.class);` Alternatively, a...