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:1368

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:1372


patches​

readonly patches: number

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


snaps​

readonly snaps: number

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


state​

readonly state: TState

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


stream​

readonly stream: string

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


version​

readonly version: number

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