18 lines
460 B
TypeScript
18 lines
460 B
TypeScript
|
export interface ICacheClient {
|
||
|
/**
|
||
|
* Retrieve the value from the cache
|
||
|
*
|
||
|
* @param key string
|
||
|
* @returns Promise<string>
|
||
|
*/
|
||
|
get(key: string): Promise<string>;
|
||
|
/**
|
||
|
* Save the required value using the provided key to cache
|
||
|
*
|
||
|
* @param key string
|
||
|
* @param value string
|
||
|
* @returns Promise<string>
|
||
|
*/
|
||
|
set(key: string, value: string): Promise<string>;
|
||
|
}
|
||
|
//# sourceMappingURL=ICacheClient.d.ts.map
|