import { RedisClientType } from "redis"; type RedisClientFactory = (options: { url: string; }) => RedisClientType; export declare class CacheService { private config; private clientFactory; private client; private connected; private memoryCache; constructor(config: { url: string; ttl: number; }, clientFactory?: RedisClientFactory); connect(): Promise; get(key: string): Promise; set(key: string, value: T, ttl?: number): Promise; delete(key: string): Promise; flush(): Promise; private normalizeKey; private normalizeTtl; private cleanupMemoryCache; disconnect(): Promise; } export {}; //# sourceMappingURL=cache-service.d.ts.map