CacheDecoratorOptions interface

Per-method options for the cache decorator.

Signature:

export interface CacheDecoratorOptions 

Properties

Property

Modifiers

Type

Description

adapter?

string | ICache | ICacheConstructor

(Optional) Cache adapter as a constructor, an instance, or a built-in adapter name.

nx?

boolean

(Optional) Store only when the key does not already exist.

ttl?

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.