CacheDecoratorOptions.nx property
Store only when the key does not already exist.
Signature:
nx?: boolean;
Remarks
Honoured by the built-in Redis adapter, but outside the ICache interface, so custom adapters may ignore it. When it suppresses a write, the existing value and its remaining TTL are left untouched.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.