cacheWith() function
Decorator factory @cacheWith(CacheWithOptions) This decorator should be used on a service methods, to set the caching rules for a method.
Signature:
export declare function cacheWith(options: CacheWithOptions): MethodDecorator;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
which channels invalidate the result, its TTL and cache tag |
Returns:
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.