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.29.2/connection.ts";

Constructors

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

Properties

private
_isClosed: boolean
private
_isConnected: boolean
private
backoff: Backoff
private
readonly
hostname: string
private
readonly
port: number | string
closer: Closer
readonly
isClosed: boolean
readonly
isConnected: boolean
readonly
isRetriable: boolean
maxRetryCount: number
name: string | null
reader: BufReader
writer: BufWriter

Methods

private
authenticate(username: string | undefined, password: string): Promise<void>
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>