Browse Source

redis

master
zeus 4 years ago
parent
commit
10cb60c887
  1. 7
      swarmlab-app/src/run/app.js

7
swarmlab-app/src/run/app.js

@ -450,8 +450,11 @@ function onCollection(err, collection) {
resobarray.push(resob1) resobarray.push(resob1)
var resob1string = JSON.stringify(resob1); var resob1string = JSON.stringify(resob1);
console.log('+++++++++++++++++' + resob1string + '<<<<<<<<<<<<<<<<<<<<<<' + pathfileval); console.log('+++++++++++++++++' + resob1string + '<<<<<<<<<<<<<<<<<<<<<<' + pathfileval);
pubClient.hmset(pathfileval,resob1string) //pubClient.hmset(pathfileval,resob1string)
await pubClient.hgetall(pathfileval, function(err, object) { pubClient.hmset(pathfileval, resob1string, function(err, res) {
console.log('====================================================== '+JSON.stringify(res));
});
await pubClient.hgetall(pathfileval, function(err, object) {
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(object)); console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(object));
}); });
//} //}

Loading…
Cancel
Save