1 | import { Logger } from '@nestjs/common/services/logger.service';
|
2 | import { ReadPacket, RedisOptions, WritePacket } from '../interfaces';
|
3 | import { ClientProxy } from './client-proxy';
|
4 | declare type Redis = any;
|
5 | export declare class ClientRedis extends ClientProxy {
|
6 | protected readonly options: RedisOptions['options'];
|
7 | protected readonly logger: Logger;
|
8 | protected readonly subscriptionsCount: Map<string, number>;
|
9 | protected pubClient: Redis;
|
10 | protected subClient: Redis;
|
11 | protected connection: Promise<any>;
|
12 | protected isExplicitlyTerminated: boolean;
|
13 | constructor(options: RedisOptions['options']);
|
14 | getRequestPattern(pattern: string): string;
|
15 | getReplyPattern(pattern: string): string;
|
16 | close(): void;
|
17 | connect(): Promise<any>;
|
18 | createClient(): Redis;
|
19 | handleError(client: Redis): void;
|
20 | getClientOptions(): Partial<RedisOptions['options']>;
|
21 | createRetryStrategy(times: number): undefined | number;
|
22 | createResponseCallback(): (channel: string, buffer: string) => Promise<void>;
|
23 | protected publish(partialPacket: ReadPacket, callback: (packet: WritePacket) => any): () => void;
|
24 | protected dispatchEvent(packet: ReadPacket): Promise<any>;
|
25 | protected unsubscribeFromChannel(channel: string): void;
|
26 | }
|
27 | export {};
|