Redigera

Dela via


ICacheClient interface

Methods

get(string)

Retrieve the value from the cache

set(string, string)

Save the required value using the provided key to cache

Method Details

get(string)

Retrieve the value from the cache

function get(key: string): Promise<string>

Parameters

key

string

string

Returns

Promise<string>

Promise

set(string, string)

Save the required value using the provided key to cache

function set(key: string, value: string): Promise<string>

Parameters

key

string

string

value

string

string

Returns

Promise<string>

Promise