Browse Source

redis

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

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

@ -450,7 +450,10 @@ 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)
pubClient.hmset(pathfileval, resob1string, function(err, res) {
console.log('====================================================== '+JSON.stringify(res));
});
await pubClient.hgetall(pathfileval, function(err, object) { await pubClient.hgetall(pathfileval, function(err, object) {
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(object)); console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(object));
}); });

Loading…
Cancel
Save