Skip to content

Remove deprecated Redis chat memory autoconfig module - #7017

Open
guanxuc wants to merge 2 commits into
spring-projects:mainfrom
guanxuc:clean-redis-memory
Open

guanxuc wants to merge 2 commits into
spring-projects:mainfrom
guanxuc:clean-redis-memory

Conversation

@guanxuc

@guanxuc guanxuc commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #6416, part of #6347. This PR removes the deprecated Redis chat memory auto-configuration module.

Changes

  • Delete the spring-ai-autoconfigure-model-chat-memory-redis compatibility module that was deprecated in 2.0.1 in favor of spring-ai-autoconfigure-model-chat-memory-repository-redis, along with its module entry in the root build and its managed dependency in the BOM.

  • The legacy spring.ai.chat.memory.redis configuration prefix is no longer bound: RedisChatMemoryRepositoryAutoConfiguration drops the Binder-based fallback bean factory in favor of the standard @EnableConfigurationProperties pattern used by the sibling chat memory repository auto-configurations, and
    RedisChatMemoryRepositoryProperties is now annotated with @ConfigurationProperties.

  • Update the upgrade notes to document the removal in 2.1.0.

Delete the spring-ai-autoconfigure-model-chat-memory-redis
compatibility module that was deprecated in 2.0.1 in favor of
spring-ai-autoconfigure-model-chat-memory-repository-redis, along
with its module entry in the root build and its managed dependency
in the BOM.

The legacy spring.ai.chat.memory.redis configuration prefix is no
longer bound: RedisChatMemoryRepositoryAutoConfiguration drops the
Binder-based fallback bean factory in favor of the standard
@EnableConfigurationProperties pattern used by the sibling chat
memory repository auto-configurations, and
RedisChatMemoryRepositoryProperties is now annotated with
@ConfigurationProperties.

Update the upgrade notes to document the removal in 2.1.0.

Signed-off-by: guanxu <1510424541@qq.com>
This change was milestoned for 2.0.2, so the upgrade notes
now describe the removal of the deprecated
spring-ai-autoconfigure-model-chat-memory-redis module and the
legacy spring.ai.chat.memory.redis prefix in a dedicated
"Upgrading to 2.0.2" section instead of under 2.1.0, and the
cross-reference in the 2.0.1 smooth transition note points to it.

Signed-off-by: guanxu <1510424541@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants