# RedisCache.init() method · @imqueue/rpc

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

Initializes the cache instance. The underlying Redis connection is shared between all instances; concurrent initializations share a single connection attempt.

**Signature:**

```typescript
init(options?: IRedisCacheOptions): Promise<RedisCache>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| options | [IRedisCacheOptions](https://imqueue.org/api/rpc/latest/rpc.irediscacheoptions/) | _(Optional)_ Redis cache options |


**Returns:**

Promise<[RedisCache](https://imqueue.org/api/rpc/latest/rpc.rediscache/)>

