Skip to main content
Version: Current

CacheEntry

@rotorsoft/act-root


@rotorsoft/act-root / act/src / CacheEntry

Interface: CacheEntry<TState>

Defined in: libs/act/src/types/ports.ts:1416

A cached snapshot entry for a stream.

Carries its own stream key so an entry is self-describing when it travels away from the cache map โ€” state projections flush entries outward as-is, one per dirty stream.

Type Parametersโ€‹

TStateโ€‹

TState extends Schema

The state schema type

Propertiesโ€‹

event_idโ€‹

readonly event_id: number

Defined in: libs/act/src/types/ports.ts:1420


patchesโ€‹

readonly patches: number

Defined in: libs/act/src/types/ports.ts:1421


snapsโ€‹

readonly snaps: number

Defined in: libs/act/src/types/ports.ts:1422


stateโ€‹

readonly state: TState

Defined in: libs/act/src/types/ports.ts:1418


streamโ€‹

readonly stream: string

Defined in: libs/act/src/types/ports.ts:1417


versionโ€‹

readonly version: number

Defined in: libs/act/src/types/ports.ts:1419