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

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

Registers the given cache adapter.

**Signature:**

```typescript
static register(adapter: ICacheAdapter | string, options?: any): typeof IMQCache;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| adapter | [ICacheAdapter](https://imqueue.org/api/rpc/latest/rpc.icacheadapter/) \| string | adapter name, class or instance |
| options | any | _(Optional)_ adapter-specific options |


**Returns:**

typeof [IMQCache](https://imqueue.org/api/rpc/latest/rpc.imqcache/)

