Node.js connection redis cluster problem

NODE.JS cannot write to redis cluster

RT, attempts to write to the redis cluster, using alibaba"s ioredis. There was no problem writing redis with node_redis before. But after rewriting the cluster, it was found that it could not be written at all. And I don"t report it wrong. That is, cluster.set,get doesn"t seem to be implemented at all.

related codes

let redisIO = require("ioredis");

let cluster = new redisIO.Cluster([{
  port: 4379,
  host: "127.0.0.1"
}, {
  port: 4380,
  host: "127.0.0.1"
}]);

 cluster.set( "key" , "value").then(function (result) {
        console.log("function done");
      
          res.json({
            status: "0",
            msg: "",
          });
    
        }
      );

what result do you expect? What is the error message actually seen?

With the

code above, there is actually no set entering the redis cluster at all.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e92a4f-471ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e92a4f-471ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?