Home > @imqueue/rpc > RedisCache > get

RedisCache.get() method

Returns the value stored in the cache under a given key.

Signature:

get(key: string): Promise<any>;

Parameters

Parameter

Type

Description

key

string

key to read the value for

Returns:

Promise<any>

{Promise} - stored value, or undefined if not found