InMemoryCacheOptionsType
Ce contenu n’est pas encore disponible dans votre langue.
InMemoryCacheOptionsType =
object
Defined in: src/cache/InMemoryCacheOptions.ts:10
Plain options-object shape accepted by an InMemoryCache.
Properties
Section titled “Properties”cleanupMs?
Section titled “cleanupMs?”
readonlyoptionalcleanupMs?:number
Defined in: src/cache/InMemoryCacheOptions.ts:18
How often (ms) to sweep expired entries in the background. Default
60 000. 0 / Infinity disables the sweep (lazy expiry still applies
on access).
maxEntries?
Section titled “maxEntries?”
readonlyoptionalmaxEntries?:number
Defined in: src/cache/InMemoryCacheOptions.ts:12
LRU cap on stored entries. Default 10 000. Infinity = unbounded.
