UNPKG

advanced-ussd-builder

Version:

Advanced USSD Menu Builder with persistent state and navigation

31 lines 1.03 kB
import { RedisClientType } from 'redis'; import { EventEmitter } from 'events'; export interface ISecureRedisOptions { connectionUrl: string; encryptionKey?: string; maxReconnectAttempts?: number; reconnectBackoffMs?: number; } export declare class SecureRedisClient extends EventEmitter { private client; private encryptionKey; private signingKey; private isConnected; private reconnectAttempts; private readonly maxReconnectAttempts; private readonly reconnectBackoffMs; constructor(options: ISecureRedisOptions); private setupEventHandlers; connect(): Promise<void>; disconnect(): Promise<void>; private encrypt; private decrypt; private sign; private verify; setSecure(key: string, value: any, ttl?: number): Promise<string | null>; getSecure(key: string): Promise<any | null>; deleteSecure(key: string): Promise<number>; get unsafeClient(): RedisClientType; get connected(): boolean; } //# sourceMappingURL=redis-secure.d.ts.map