IMQCache class

Process-wide static registry of cache adapters.

Signature:

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

static

{ [name: string]: ICache; }

The registry of adapter instances, keyed by adapter name.

Methods

Method

Modifiers

Description

apply(adapter, options)

static

Overrides existing adapter options with the given ones.

get(adapter)

static

Returns a registered cache adapter by its given name or class.

init()

static

Initializes all registered cache adapters.

register(adapter, options)

static

Registers the given cache adapter.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.