Home > @imqueue/rpc > ICache > get

ICache.get() method

Returns the value stored in the cache under the 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