Skip to main content

DefaultSessionCacheStrategy

The default SessionCacheStrategy delegates to the configured CacheStrategy to store the session data. This should be suitable for most use-cases, assuming you select a suitable CacheStrategy

Signature

cacheService

propertyCacheService

constructor

method(options?: { ttl?: number; cachePrefix?: string; }) => DefaultSessionCacheStrategy

init

method(injector: Injector) =>

set

method(session: CachedSession) => Promise<void>

get

method(sessionToken: string) => Promise<CachedSession | undefined>

delete

method(sessionToken: string) => void | Promise<void>

clear

method() => Promise<void>
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page