import { Cache } from 'cache-manager'; import { ICache } from '../types/utils'; /** * redis缓存适配器 */ export declare class RedisCache implements ICache { readonly cache: Cache; private namespace; /** * * @param cache cache manager service */ constructor(cache: Cache); get(key: string): Promise; set(key: string, value: any, ttl?: number): Promise; remove(key: string): boolean; close(): void; }