You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
838 B

import Redis from "./Redis";
import Cluster from "./cluster";
import Command from "./Command";
import Commander from "./utils/Commander";
declare class Pipeline extends Commander<{
type: "pipeline";
}> {
redis: Redis | Cluster;
isCluster: boolean;
isPipeline: boolean;
leftRedirections: {
value?: number;
};
promise: Promise<unknown>;
resolve: (result: unknown) => void;
reject: (error: Error) => void;
private replyPending;
private _queue;
private _result;
private _transactions;
private _shaToScript;
private preferKey;
constructor(redis: Redis | Cluster);
fillResult(value: unknown[], position: number): void;
sendCommand(command: Command): unknown;
addBatch(commands: any): this;
}
export default Pipeline;
interface Pipeline {
length: number;
}