/** * Redis Cache Store * * Provides distributed caching using Redis: * - Fast key-value storage with TTL support * - Pattern-based key deletion * - Tag-based cache invalidation * * Requires Redis server running. * See docs/STORAGE.md for setup instructions. */ import { ICacheStore } from '../interfaces'; export interface RedisCacheStoreConfig { host: string; port: number; password?: string; database?: number; keyPrefix?: string; } export declare class RedisCacheStore implements ICacheStore { private config; private client; private keyPrefix; private connected; private hits; private misses; constructor(config: RedisCacheStoreConfig); /** * Ensure connection is established */ private ensureConnected; private prefixKey; private tagKey; get(key: string): Promise; set(key: string, value: T, ttlSeconds?: number): Promise; /** * Set with tags for bulk invalidation */ setWithTags(key: string, value: T, tags: string[], ttlSeconds?: number): Promise; delete(key: string): Promise; has(key: string): Promise; deletePattern(pattern: string): Promise; deleteByTag(tag: string): Promise; clear(): Promise; stats(): Promise<{ size: number; hits: number; misses: number; }>; flush(): Promise; close(): Promise; /** * Test connection health */ healthCheck(): Promise; /** * Get Redis server info */ getInfo(): Promise>; } //# sourceMappingURL=redis-cache-store.d.ts.map