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