/** * Standardized Redis Adapter Interface * Normalizes differences between Deno and Node Redis clients */ export interface RedisAdapter { hset(key: string, fields: Record): Promise; hgetall(key: string): Promise>; hdel(key: string, ...fields: string[]): Promise; del(...keys: string[]): Promise; sadd(key: string, ...members: string[]): Promise; srem(key: string, ...members: string[]): Promise; smembers(key: string): Promise; rpush(key: string, ...values: string[]): Promise; lrange(key: string, start: number, stop: number): Promise; lindex(key: string, index: number): Promise; lset(key: string, index: number, value: string): Promise; llen(key: string): Promise; xadd(key: string, id: string, fields: Record): Promise; xread(streams: Array<{ key: string; xid: string; }>, options?: { block?: number; count?: number; }): Promise; }>; }>>; xgroupCreate(key: string, group: string, id: string, mkstream?: boolean): Promise; xreadgroup(streams: Array<{ key: string; xid: string; }>, options: { group: string; consumer: string; block?: number; count?: number; }): Promise; }>; }>>; xack(key: string, group: string, ...ids: string[]): Promise; keys(pattern: string): Promise; scan(cursor: number, options?: { MATCH?: string; COUNT?: number; }): Promise<{ cursor: number; keys: string[]; }>; exists(...keys: string[]): Promise; expire(key: string, seconds: number): Promise; set(key: string, value: string, options?: { nx?: boolean; px?: number; ex?: number; }): Promise; get(key: string): Promise; /** * Run a Lua script atomically (EVAL). Used for compare-and-delete and * compare-and-pexpire so lock ownership checks cannot race (Redlock). */ eval(script: string, keys: string[], args: string[]): Promise; quit(): Promise; disconnect(): Promise; } //# sourceMappingURL=interface.d.ts.map