/** * Redis Manager - Centralized Redis connection and operation management */ import { RedisClientType } from "redis"; import { LocalMemory } from "./local-memory.js"; export interface RedisConfig { url?: string; embedded?: boolean; quiet?: boolean; reconnectStrategy?: (retries: number) => number; } export declare class RedisManager { private redisClient; private pubSubClient; private subscriberClient; private localMemory; private isConnected; private config; constructor(config?: RedisConfig); private defaultReconnectStrategy; private log; initialize(): Promise; private initializeEmbedded; private initializeExternal; private setupErrorHandlers; shutdown(): Promise; execute(operation: string, handler: () => Promise): Promise; getClient(): RedisClientType | null; getPubSubClient(): RedisClientType | null; getSubscriberClient(): RedisClientType | null; getLocalMemory(): LocalMemory | null; isReady(): boolean; get(key: string): Promise; set(key: string, value: string, ttl?: number): Promise; del(keys: string | string[]): Promise; keys(pattern: string): Promise; incr(key: string): Promise; expire(key: string, ttl: number): Promise; ttl(key: string): Promise; sAdd(key: string, members: string | string[]): Promise; sMembers(key: string): Promise; sRem(key: string, members: string | string[]): Promise; hIncrBy(key: string, field: string, increment: number): Promise; hGet(key: string, field: string): Promise; hGetAll(key: string): Promise>; hDel(key: string, fields: string | string[]): Promise; scan(cursor: string, options?: { MATCH?: string; COUNT?: number; }): Promise<{ cursor: string; keys: string[]; }>; publish(channel: string, message: string): Promise; subscribe(channel: string, handler: (message: string, channel: string) => void): Promise; unsubscribe(channel: string): Promise; info(section?: string): Promise; } //# sourceMappingURL=redis-manager.d.ts.map