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
| Parameter | Type |
|---|---|
key | any |
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
| Parameter | Type |
|---|---|
key | any |
value | any |
Returns
void