Home > @imqueue/rpc > IMQCache > register

IMQCache.register() method

Registers the given cache adapter.

Signature:

static register(adapter: ICacheAdapter | string, options?: any): typeof IMQCache;

Parameters

Parameter

Type

Description

adapter

ICacheAdapter | string

adapter name, class or instance

options

any

(Optional) adapter-specific options

Returns:

typeof IMQCache

{IMQCache}