@@ -18,21 +18,16 @@ if (config.build_config.open_test == 0) {
// username: username,
// password: password,
console.log('host , post', host, port)
-var REDIS_INSTANCE = new Redis({
+
+const opts = {
port: port,
host: host,
- username: username,
+ // username: username,
- password: password,
+ // password: password,
connectTimeout: 10000,
-});
+}
-// var REDIS_INSTANCE = new Redis.Cluster([
+var REDIS_INSTANCE = new Redis(opts);
-// {
-// port: port,
-// password: password,
-// host: host,
-// },
-// ]);
REDIS_INSTANCE.on('connect', () => {
console.log('connected to redis')