Skip to content

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

@trcoelho

Description

@trcoelho

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions