Ir al contenido
Español

CachedSnapshotStoreOptionsType

Esta página aún no está disponible en tu idioma.

CachedSnapshotStoreOptionsType = object

Defined in: src/persistence/snapshot-stores/CachedSnapshotStoreOptions.ts:13

readonly cache: Cache

Defined in: src/persistence/snapshot-stores/CachedSnapshotStoreOptions.ts:15

Backing cache — typically Redis in production.


readonly optional keyPrefix?: string

Defined in: src/persistence/snapshot-stores/CachedSnapshotStoreOptions.ts:19

Key prefix (default: 'snap:') prevents collisions in shared caches.


readonly optional ttlMs?: number

Defined in: src/persistence/snapshot-stores/CachedSnapshotStoreOptions.ts:17

Cache TTL in milliseconds. Default: 5 minutes.