Skip to main content
Module

x/redis/connection.ts>RedisConnection

🦕 Redis client for Deno 🍕
Very Popular
Go to Latest
class RedisConnection
implements Connection
import { RedisConnection } from "https://deno.land/x/redis@v0.32.2/connection.ts";

Constructors

new
RedisConnection(
hostname: string,
port: number | string,
)

Properties

private
_isClosed: boolean
private
_isConnected: boolean
private
backoff: Backoff
private
commandQueue: PendingCommand[]
private
readonly
hostname: string
private
maxRetryCount: number
private
readonly
port: number | string
readonly
isClosed: boolean
readonly
isConnected: boolean
readonly
isRetriable: boolean
name: string | null

Methods

private
authenticate(username: string | undefined, password: string): Promise<void>
private
enqueueCommand(command: PendingCommand)
private
isManuallyClosedByUser(): boolean
private
selectDb(db?: number | undefined): Promise<void>
connect(): Promise<void>

Connect to Redis server

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