Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 661 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 661 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 "@db/redis/experimental/cluster";

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

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