# IRedisCacheOptions interface · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.irediscacheoptions/
Published: 2026-10-07
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.9.5 — generated reference, not hand-written

Options accepted by [RedisCache.init()](https://imqueue.org/api/rpc/latest/rpc.rediscache.init/).

**Signature:**

```typescript
export interface IRedisCacheOptions extends Partial<IMQOptions> 
```
**Extends:** Partial<IMQOptions>

## Remarks

This inherits the queue option shape, but the adapter only honours `host`, `port`, `username`, `password`, `tls`, `prefix`, `logger` and `conn`. All other inherited queue options are accepted by the type and silently ignored.

`tls` encrypts the cache connection exactly as it encrypts a queue's: `true` for Node's defaults, an object handed to `tls.connect()` as given, and when omitted the `IMQ_REDIS_TLS*` environment variables are consulted, so a deployment can encrypt its caches and its queues with one setting. Pass `false` to decline that fallback.

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [conn?](https://imqueue.org/api/rpc/latest/rpc.irediscacheoptions.conn/) |  | IRedisClient | _(Optional)_ An existing Redis client to reuse — a running service's queue writer, for example — instead of opening a new connection. |

