# ICacheConstructor interface · @imqueue/rpc

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

Constructor signature the registry uses to instantiate a cache adapter class.

**Signature:**

```typescript
export interface ICacheConstructor 
```

## Remarks

The registry always calls it with no arguments. The optional `name` argument is a legacy affordance that no built-in adapter accepts and that the registry never supplies, so implementations must be constructible with zero arguments and set their own [ICache.name](https://imqueue.org/api/rpc/latest/rpc.icache.name/).

## Methods


| Method | Description |
| --- | --- |
| [(new)(name)](https://imqueue.org/api/rpc/latest/rpc.icacheconstructor._new_/) | Constructs a cache adapter instance, ready to be initialized. |

