Sentinel.getMasterAddrByName('mymaster',(err,res)=>{if(err){console.error('Could not get master address:',err);}else{constmasterHost=res[0];constmasterPort=res[1];// 连接到 Redis 主节点constclient=Redis.createClient({host:masterHost,port:masterPort});client.on('connect',()=>{console....