Home > @imqueue/rpc > RedisCache > init

RedisCache.init() method

Initializes the cache instance. The underlying Redis connection is shared between all instances; concurrent initializations share a single connection attempt.

Signature:

init(options?: IRedisCacheOptions): Promise<RedisCache>;

Parameters

Parameter

Type

Description

options

IRedisCacheOptions

(Optional) Redis cache options

Returns:

Promise<RedisCache>

{Promise}