UNPKG

@tnhb/cache

Version:

TNHB 缓存 By blak-kong

13 lines (12 loc) 358 B
/** * @author blak-kong * @copyright blak-kong@foxmail.com * @description 默认的缓存策略 */ import { ICache } from './ICache'; export declare class DefaultCache implements ICache { private map; get(key: string): Promise<string>; set(key: string, jsonValue: string): Promise<void>; remove(key: string): Promise<void>; }