ISessionStore over any ICacheStore.
CacheSessionStore(cache: ICacheStore,options?: CacheSessionStoreOptions)
Parameters
optional
options: CacheSessionStoreOptions
Namespacing options
destroy(id: string): Promise<boolean>
Removes a stored session.
isHealthy(): Promise<boolean>
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.
read(id: string): Promise<SessionData | null>
Reads a stored session payload.
write(id: string,data: SessionData,ttlMs: number): Promise<void>
Writes a session payload, replacing any existing one.