Browse Source

redis

master
zeus 4 years ago
parent
commit
8fd29b4af9
  1. 1
      swarmlab-app/src/run/app.js

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

@ -449,6 +449,7 @@ function onCollection(err, collection) {
resob1.tailed_path = pathfileval resob1.tailed_path = pathfileval
resobarray.push(resob1) resobarray.push(resob1)
var resob1string = JSON.stringify(resob1); var resob1string = JSON.stringify(resob1);
console.log('+++++++++++++++++' + resob1string + '<<<<<<<<<<<<<<<<<<<<<<' + pathfileval);
pubClient.hmset(pathfileval,resob1string) pubClient.hmset(pathfileval,resob1string)
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