/** * 缓存接口,需要自定义缓存,请实现该接口 * * cache interface, please implement this interface if you need. * */ export interface ICache { get(key: string): Promise; set(key: string, value: any, ttl?: number): void; remove(key: string): boolean; close(): void; }