Pular para o conteúdo
Português (BR)

InMemoryCacheOptionsType

Este conteúdo não está disponível em sua língua ainda.

InMemoryCacheOptionsType = object

Defined in: src/cache/InMemoryCacheOptions.ts:10

Plain options-object shape accepted by an InMemoryCache.

readonly optional cleanupMs?: 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).


readonly optional maxEntries?: number

Defined in: src/cache/InMemoryCacheOptions.ts:12

LRU cap on stored entries. Default 10 000. Infinity = unbounded.