CacheDecoratorOptions interface
Per-method options for the cache decorator.
Signature:
export interface CacheDecoratorOptions
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string | ICache | ICacheConstructor |
(Optional) Cache adapter as a constructor, an instance, or a built-in adapter name. | ||
|
boolean |
(Optional) Store only when the key does not already exist. | ||
|
number |
(Optional) Time-to-live in milliseconds. |
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.