# CacheDecoratorOptions.nx property · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.cachedecoratoroptions.nx/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.5.3 — generated reference, not hand-written

Store only when the key does not already exist.

**Signature:**

```typescript
nx?: boolean;
```

## Remarks

Honoured by the built-in Redis adapter, but outside the [ICache](https://imqueue.org/api/rpc/latest/rpc.icache/) interface, so custom adapters may ignore it. When it suppresses a write, the existing value and its remaining TTL are left untouched.

