Files
spring-ai/session-memory/output/14-expiry.txt
T

7 lines
292 B
Plaintext

# timeToLive and deleteExpiredSessions
Two hours from now, 'short' (ttl 1h) is past its expiresAt; 'long' (ttl 30d) is not.
Before the cleaner: findById(short) = present, events = 2
deleteExpiredSessions(now + 2h) removed 1 session(s)
After: findById(short) = null, findById(long) = present