OptionalcloseReleases 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
OptionalisReports 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
Writes a session payload, replacing any existing one.
Session identifier
The payload to persist
Time-to-live in milliseconds from now
Server-side session storage port.
Implemented by the plugin's
MemorySessionStoreandCacheSessionStore, and by any application-supplied backend. Only the store strategy uses it; the default cookie strategy keeps the payload in the cookie and needs no store.Every method is async so a network-backed store fits without change.
Since
0.2.0