-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Description
Description
code
import { createSentinel } from "redis";
import KVROCKS from "../conf/KVROCKS.js";
const S = await createSentinel(KVROCKS)
.on("error", (err) => {
console.error("Redis Error:", err);
})
.connect();
console.log(KVROCKS);
console.log(await S.hello());
console.log(await S.hello(3));
config :
{
RESP: 3,
sentinelOptions: {
RESP: 3,
},
name: "kvrocks",
sentinelClientOptions: {
password: "xxx",
},
sentinelRootNodes: [
{
host: "x.x.x.x",
port: 2011,
}, {
host: "x.x.x.x",
port: 2011,
}, {
host: "x.x.x.x",
port: 2011,
}
],
nodeClientOptions: {
password: "xxx",
},
}
[
"server", "redis", "version", "4.0.0", "proto", 2, "mode", "standalone", "role", "master", "modules",
null
]
[Object: null prototype] {
server: "redis",
version: "4.0.0",
proto: 3,
mode: "standalone",
role: "master",
modules: null,
}
Node.js Version
v24.11.1
Redis Server Version
kvrocks_version:2.14.0
Node Redis Version
5.10.0
Platform
mac