Skip to main content

cache

@rotorsoft/act-root


@rotorsoft/act-root / act/src / cache

Variable: cache

const cache: (adapter?) => Cache

Defined in: libs/act/src/ports.ts:186

Gets or injects the singleton cache.

By default, Act uses an InMemoryCache (LRU, maxSize 1000). For distributed deployments, inject a Redis-backed cache before building your application.

Parameters

adapter?

Cache

Optional cache implementation to inject

Returns

Cache

The singleton cache instance

See