Files
spring-ai/chat-memory/output/17-redis-silent-fallback.txt
T
Claude e73876c505 Add chat-memory module: MessageWindowChatMemory, JDBC and Redis repositories, per-user conversation IDs
Real PostgreSQL 16 and Redis Stack 7.4; 24 tests write output/01-24. Covers the 20-message
default window with no property, the 36-character conversation_id, tool messages dropped by
JdbcChatMemoryRepository, concurrent add() on one conversation, a 1.x table under the 2.0
repository, the Redis repository silently backing off for a custom ChatMemory, and the
removal of PromptChatMemoryAdvisor.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ja4jkzrbQ4LQZBNrb5mkZE
2026-09-24 15:40:22 +00:00

12 lines
850 B
Plaintext

# Redis starter + your own ChatMemory bean
application has: spring-ai-starter-model-chat-memory-repository-redis, profile "redis", Redis Stack reachable,
and its own @Bean ChatMemory (needed to set a window other than 20)
ChatMemoryRepository bean in the context: InMemoryChatMemoryRepository
Redis keys under "chat-memory:" before / after one chat call: 7 / 7
Condition report for the autoconfigured Redis repository bean:
@ConditionalOnMissingBean (types: org.springframework.ai.chat.memory.repository.redis.RedisChatMemoryRepository,org.springframework.ai.chat.memory.ChatMemory,org.springframework.ai.chat.memory.ChatMemoryRepository; SearchStrategy: all) found beans of type 'org.springframework.ai.chat.memory.ChatMemory' chatMemory
Startup log lines mentioning the fallback: 0 (the back-off is a normal @ConditionalOnMissingBean outcome)