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

x/redis/redis.ts>connect

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

Connect to Redis server

Examples

Example 1

import { connect } from "./mod.ts";
const conn1 = await connect({hostname: "127.0.0.1", port: 6379}); // -> TCP, 127.0.0.1:6379
const conn2 = await connect({hostname: "redis.proxy", port: 443, tls: true}); // -> TLS, redis.proxy:443

Returns

Promise<Redis>