Injected clock and timer functions
How many entries are currently held, expired ones included.
Releases resources held by the store (timers, connections).
Optional: called from the plugin's onClose. A store holding nothing
omits it.
Removes a stored session.
Session identifier
true when an entry was removed
Reports the store's reachability, for the plugin's health indicator.
Optional: a store with no meaningful liveness check omits it, and the indicator then reports only that a store is configured.
true when the store is reachable
Reads a stored session payload.
Session identifier
The payload, or null when absent or expired
Drops every expired entry. Exposed so the sweep is directly testable.
Writes a session payload, replacing any existing one.
Session identifier
The payload to persist
Time-to-live in milliseconds from now
Map-backedISessionStore.Example
Since
0.2.0