Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6jDW7zqoKDMTRrCyq
7 lines
292 B
Plaintext
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
|