After upgrade to Spring Boot 3.5.0 java.lang.NoSuchMethodError: 'redis.clients.jedis.params.BaseSetExParams redis.clients.jedis.params.SetParams.px(long)' is raised when TTL is set #3165
Labels
for: external-project
For an external project and not something we can fix
Hello!
After upgrading to Spring Boot 3.5.0, following exception occurs:
java.lang.NoSuchMethodError: 'redis.clients.jedis.params.BaseSetExParams redis.clients.jedis.params.SetParams.px(long)'
When
spring.cache.redis.time-to-live
propertie is set even in configuration:@Bean RedisCacheManager cacheManager(RedisConnectionFactory redisConnectionFactory) { RedisCacheConfiguration cacheConfig = RedisCacheConfiguration.defaultCacheConfig().entryTtl(Duration.ofSeconds(1500)).disableCachingNullValues(); return RedisCacheManager.builder(redisConnectionFactory).cacheDefaults(cacheConfig).build(); }
Looks like if you force:
<dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> </dependency>
to version 6.0.0 it got solved,
Any updates or other workaround to solve it?
The text was updated successfully, but these errors were encountered: