1 | import Redis from "./Redis";
|
2 | import Cluster from "./cluster";
|
3 | import Command from "./Command";
|
4 | import Commander from "./utils/Commander";
|
5 | declare class Pipeline extends Commander<{
|
6 | type: "pipeline";
|
7 | }> {
|
8 | redis: Redis | Cluster;
|
9 | isCluster: boolean;
|
10 | isPipeline: boolean;
|
11 | leftRedirections: {
|
12 | value?: number;
|
13 | };
|
14 | promise: Promise<unknown>;
|
15 | resolve: (result: unknown) => void;
|
16 | reject: (error: Error) => void;
|
17 | private replyPending;
|
18 | private _queue;
|
19 | private _result;
|
20 | private _transactions;
|
21 | private _shaToScript;
|
22 | private preferKey;
|
23 | constructor(redis: Redis | Cluster);
|
24 | fillResult(value: unknown[], position: number): void;
|
25 | sendCommand(command: Command): unknown;
|
26 | addBatch(commands: any): this;
|
27 | }
|
28 | export default Pipeline;
|
29 | interface Pipeline {
|
30 | length: number;
|
31 | }
|