This module provides a client impelementation for the Redis Cluster.
The implementation is based on the antirez/redis-rb-cluster.
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");