Skip to main content
Version: Current

DifferentialCache

@rotorsoft/act-root


@rotorsoft/act-root / act-tck/src / DifferentialCache

Type Alias: DifferentialCache

DifferentialCache = object

Defined in: libs/act-tck/src/cache-differential-tck.ts:11

One Cache implementation to feed into runCacheDifferentialTck. The harness drives the identical generated workload against all of them, then compares the observable get() snapshot after every operation.

Propertiesโ€‹

factoryโ€‹

readonly factory: () => Cache | Promise<Cache>

Defined in: libs/act-tck/src/cache-differential-tck.ts:20

Produces the cache under test. Called once in beforeAll; the harness owns its lifecycle (dispose). Must return an empty cache with capacity for at least CacheDifferentialTckOptions.streams entries so nothing is evicted mid-comparison.

Returnsโ€‹

Cache | Promise<Cache>


nameโ€‹

readonly name: string

Defined in: libs/act-tck/src/cache-differential-tck.ts:13

Display name used in assertion messages and the describe block.