Skip to main content
Module

x/r2d2/mod.ts>writeCommand

Fast, lightweight Redis client library for Deno.
Go to Latest
function writeCommand
import { writeCommand } from "https://deno.land/x/r2d2@v1.1.1/mod.ts";

Just writes a command to the Redis server.

Example:

import { writeCommand } from "https://deno.land/x/r2d2@$VERSION/mod.ts";

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

await writeCommand(redisConn, ["SHUTDOWN"]);

Returns

Promise<void>