cache
@rotorsoft/act-root / act/src / cache
Variable: cache
constcache: (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?
Optional cache implementation to inject
Returns
The singleton cache instance
See
- Cache for the interface contract
- InMemoryCache for the default implementation