# IMQCache class · @imqueue/rpc

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

Process-wide static registry of cache adapters.

**Signature:**

```typescript
export declare class IMQCache 
```

## Remarks

All state is static and shared by every consumer in the process; there is no instance form and no way to unregister or reset an adapter. Adapters are keyed by name, so a single adapter class can only be registered once — two different configurations of the same class cannot coexist.

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [adapters](https://imqueue.org/api/rpc/latest/rpc.imqcache.adapters/) | `static` | { \[name: string\]: [ICache](https://imqueue.org/api/rpc/latest/rpc.icache/); } | The registry of adapter instances, keyed by adapter name. |


## Methods


| Method | Modifiers | Description |
| --- | --- | --- |
| [apply(adapter, options)](https://imqueue.org/api/rpc/latest/rpc.imqcache.apply/) | `static` | Overrides existing adapter options with the given ones. |
| [get(adapter)](https://imqueue.org/api/rpc/latest/rpc.imqcache.get/) | `static` | Returns a registered cache adapter by its given name or class. |
| [init()](https://imqueue.org/api/rpc/latest/rpc.imqcache.init/) | `static` | Initializes all registered cache adapters. |
| [register(adapter, options)](https://imqueue.org/api/rpc/latest/rpc.imqcache.register/) | `static` | Registers the given cache adapter. |

