Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/redis/mod.ts>Connection

πŸ¦• Redis client for Deno πŸ•
Very Popular
Latest
interface Connection
import { type Connection } from "https://deno.land/x/redis@v0.34.0/mod.ts";

Properties

isClosed: boolean
isConnected: boolean

Methods

close(): void
connect(): Promise<void>
reconnect(): Promise<void>
sendCommand(
command: string,
args?: Array<RedisValue>,
options?: SendCommandOptions,
): Promise<RedisReply>
[kUnstableReadReply](returnsUint8Arrays?: boolean): Promise<RedisReply>
[kUnstableWriteCommand](command: Command): Promise<void>
[kUnstablePipeline](commands: Array<Command>): Promise<Array<RedisReply | ErrorReplyError>>