Interface: CacheOptions
Defined in: src/utils/cache.ts:101
Configuration options for creating a TypedCache instance.
Remarksโ
Both properties are optional. When omitted, the cache uses a sensible default
for maxSize
and no default TTL (entries will not expire unless a TTL is
provided at set
time).
Propertiesโ
maxSize?โ
optional
maxSize:number
Defined in: src/utils/cache.ts:108
Maximum number of entries the cache will retain before evicting the least-recently-used entries.
Default Valueโ
100;
ttl?โ
optional
ttl:number
Defined in: src/utils/cache.ts:114
Default time-to-live in milliseconds applied to entries when no per-entry TTL is provided.