Skip to content

Restore Jedis 7.0 compatibility for Redis integrations#6587

Open
jewoodev wants to merge 2 commits into
spring-projects:mainfrom
jewoodev:6584-redis-jedis-compatibility
Open

Restore Jedis 7.0 compatibility for Redis integrations#6587
jewoodev wants to merge 2 commits into
spring-projects:mainfrom
jewoodev:6584-redis-jedis-compatibility

Conversation

@jewoodev

@jewoodev jewoodev commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Redis chat memory currently references RedisClient, which is only available in newer Jedis versions. Spring Boot 4.0.x manages Jedis 7.0.0, so the Redis chat memory starter can fail during auto-configuration before RedisChatMemoryRepository is created.

This changes the Redis integrations to use UnifiedJedis as the client-facing type and creates default clients with JedisPooled, which is available in Jedis 7.0.0. Newer Jedis clients that extend UnifiedJedis can still be provided by users.

The same compatibility adjustment is applied across Redis chat memory, Redis vector store, Redis semantic cache, tests, and docs.

Validated with Jedis 7.0.0 by running dependency resolution and package verification for the affected Redis modules and auto-configurations.

Fixes #6584

Use `UnifiedJedis` as the Redis client-facing type and create default clients with `JedisPooled`, which is available in Jedis 7.0.0.

This avoids loading the newer `RedisClient` type while still allowing newer Jedis clients that extend `UnifiedJedis` to be provided by users.

Update Redis chat memory, vector store, semantic cache, tests, and docs to use the compatible client types.

Fixes spring-projects#6584

Signed-off-by: jewoodev <jewoos15@naver.com>
Add coverage for the Redis chat memory auto-configuration alongside the default chat memory auto-configuration. When the Redis repository starter is active, `ChatMemoryRepository` should resolve to `RedisChatMemoryRepository` and the default `InMemoryChatMemoryRepository` should back off.

Signed-off-by: jewoodev <jewoos15@naver.com>
@quaff

quaff commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Spring AI is base on Spring Boot 4.1 which uses jedis 7.4 not 7.0.

@jewoodev

Copy link
Copy Markdown
Contributor Author

The reported application resolves Jedis 7.0.0 through its dependency management. This PR uses UnifiedJedis, which is available in both Jedis 7.0 and 7.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot auto-configure redis chat memory due to unresolved jedis module

4 participants