# CacheDecoratorOptions.ttl property · @imqueue/rpc

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

Time-to-live in milliseconds.

**Signature:**

```typescript
ttl?: number;
```

## Remarks

Omitted or non-positive means the entry never expires. A non-integer value is rejected by Redis, which makes the write throw rather than return falsy.

