Перейти к содержимому
Русский

CachedSnapshotStoreOptionsType

Это содержимое пока не доступно на вашем языке.

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.