ICacheClient interface
Interface for the cache that defines a getter and setter
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
key of item in the cache
Returns
Promise<string>
Promise<string>
set(string, string)
Save the required value using the provided key to cache
function set(key: string, value: string): Promise<string>
Parameters
- key
-
string
key of item in the cache
- value
-
string
value of item to be saved in the cache
Returns
Promise<string>
Promise<string>