Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 684 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 684 Bytes

experimental/cluster

deno doc

This module provides a client impelementation for the Redis Cluster.

The implementation is based on the antirez/redis-rb-cluster.

Usage

import { connect } from "https://deno.land/x/redis/experimental/cluster/mod.ts";

const cluster = await connect({
  nodes: [
    {
      hostname: "127.0.0.1",
      port: 7000,
    },
    {
      hostname: "127.0.0.1",
      port: 7001,
    },
  ],
});

await cluster.get("{foo}bar");