-
-
Notifications
You must be signed in to change notification settings - Fork 47
Background session cleanup #577
Copy link
Copy link
Open
Labels
C-libCrate: cot (main library crate)Crate: cot (main library crate)enhancementNew feature or requestNew feature or request
Milestone
Metadata
Metadata
Assignees
Labels
C-libCrate: cot (main library crate)Crate: cot (main library crate)enhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for Feature.
Problem statement
Currently, some of the session store implementations (such as the database store, file-based store) do not do any sort of cleanup for expired keys. This means the session keys will pile up over time and will never get deleted.
When we get a support for background job processing, we should add an automatically run jobs that will clean up expired session keys periodically.
The same thing probably also applies to the Cache.
Proposed solution
Provide a background job that will clean up expired keys periodically.
Alternatives considered
No response
Drawbacks
No response
Additional context
No response