Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/r2d2/mod.ts>pipelineCommands

Lightweight Redis client library for Deno.
Go to Latest
function pipelineCommands
import { pipelineCommands } from "https://deno.land/x/r2d2@v0.0.10/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[]>