Type Alias: CreateLruCacheAdapterOptions
Type Alias: CreateLruCacheAdapterOptions
Section titled “Type Alias: CreateLruCacheAdapterOptions”CreateLruCacheAdapterOptions =
object
Defined in: adapters/cache/lru.ts:5
Properties
Section titled “Properties”maxEntries?
Section titled “maxEntries?”
optionalmaxEntries?:number
Defined in: adapters/cache/lru.ts:7
Maximum number of snapshots to retain in memory
resetTtlOnSet?
Section titled “resetTtlOnSet?”
optionalresetTtlOnSet?:boolean
Defined in: adapters/cache/lru.ts:13
Reset TTL when setting an existing key
ttlMs?
Section titled “ttlMs?”
optionalttlMs?:number
Defined in: adapters/cache/lru.ts:10
Optional TTL in milliseconds. 0 disables expiration.