Module

x/r2d2/mod.ts>pipelineCommands

Fast, lightweight Redis client library for Deno.
Go to Latest
function pipelineCommands
import { pipelineCommands } from "https://dotland.deno.dev/x/r2d2@v0.0.14/mod.ts";

Pipelines commands to the Redis server and returns the parsed replies.

Example:

const redisConn = await Deno.connect({ port: 6379 });

// Returns [1, 2, 3, 4]
await pipelineCommands(redisConn, [
 ["INCR", "X"],
 ["INCR", "X"],
 ["INCR", "X"],
 ["INCR", "X"],
]);

Parameters

redisConn: Deno.Conn
commands: Command[]

Returns

Promise<Reply[]>