Skip to main content

SqlCacheStrategy

A CacheStrategy that stores cached items in the database. This is the strategy used by the DefaultCachePlugin.

Signature

cacheSize

property

ttlProvider

propertyCacheTtlProvider

constructor

method(config?: { cacheSize?: number; cacheTtlProvider?: CacheTtlProvider }) => SqlCacheStrategy

connection

configService

propertyConfigService

init

method(injector: Injector) =>

get

method(key: string) => Promise<T | undefined>

set

method(key: string, value: T, options?: SetCacheKeyOptions) =>

delete

method(key: string) =>

invalidateTags

method(tags: string[]) =>
Was this chapter helpful?
Report Issue
Edited Jan 28, 2026ยทEdit this page