# IMQCache.apply() method · @imqueue/rpc

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

Overrides existing adapter options with the given ones.

**Signature:**

```typescript
static apply(adapter: ICacheAdapter | string, options: any): typeof IMQCache;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| adapter | [ICacheAdapter](https://imqueue.org/api/rpc/latest/rpc.icacheadapter/) \| string | adapter to apply options to |
| options | any | adapter-specific options |


**Returns:**

typeof [IMQCache](https://imqueue.org/api/rpc/latest/rpc.imqcache/)

