The name of the default store.
Whether a store (instance or factory) is registered under the name.
The store name.
True if registered.
Register a ready-made store instance.
The store name.
The store instance.
This manager for chaining.
Register a lazy factory for a store (built on first access).
The store name.
The store factory.
This manager for chaining.
Set the default store name.
The store name.
This manager for chaining.
Resolve a store by name (defaults to the default store).
Optionalname: string
The store name.
The resolved CacheStore.
StaticcreateCreate a CacheManager.
The name of the default store.
A new CacheManager.
StaticgetThe process-wide default manager, if the cache module has been booted.
The manager, or undefined.
StaticsetRegister (or replace) the process-wide default manager used by the method decorators.
Optionalmanager: CacheManager
The manager instance (or undefined to clear).
Multi-store cache registry.
Application code resolves a store by name (
cacheManager.store('redis')) and talks to it through the agnostic CacheStore contract, so the concrete backend is a registration detail. Amemorystore is registered by default. The manager also exposes a process-wide default instance so the method decorators (@Cacheable,@CacheEvict,@CachePut) can reach it without wiring.