Skip to content

Interface: Cache ​

Methods ​

get() ​

ts
get(key: any): any;

Retrieve an item from the cache.

Note that key and value can be anything including objects, array, etc.

Parameters ​

ParameterType
keyany

Returns ​

any


set() ​

ts
set(key: any, value: any): void;

Add an item to the cache.

Note that key and value can be anything including objects, array, etc.

Parameters ​

ParameterType
keyany
valueany

Returns ​

void