Files
spring-ai/chat-memory/output/18-redis-ttl-and-cap.txt
Claude 823f6fac5b 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:56:47 +00:00

9 lines
282 B
Plaintext

# Redis time-to-live = 2s, max-messages-per-conversation = 4
saved 2 messages; readable now: U:u1 | A:a1
3 seconds later: (gone: Redis expired the keys)
saved 6 messages with max-messages-per-conversation=4, read back 4:
U:u1 | A:a1 | U:u2 | A:a2
keys in Redis for it: 7