Browse Source

redis

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

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

@ -437,7 +437,7 @@ function onCollection(err, collection) {
console.log('file2222222222222222222222222222222222222 ' + JSON.stringify(pathfileval)) console.log('file2222222222222222222222222222222222222 ' + JSON.stringify(pathfileval))
var token = "d2539e5a7ae1f9f1b0eb2b8f22ca467a86d28407"; // desto var token = "d2539e5a7ae1f9f1b0eb2b8f22ca467a86d28407"; // desto
var resdata = await getpipelines(token,pathfile) var resdata = await getpipelines(token,pathfile)
console.log('file2222222222222222222222222222222222222------------------------------ ' + JSON.stringify(resdata)) console.log('file2222222222222222222222222222222222222------------------------------ ' + JSON.stringify(resdata.data))
resob.pathlogfile = pathfileval resob.pathlogfile = pathfileval
var resobarray = [] var resobarray = []
for (let i in resdata.data) { for (let i in resdata.data) {
@ -451,7 +451,7 @@ function onCollection(err, collection) {
var resob1string = JSON.stringify(resob1); var resob1string = JSON.stringify(resob1);
pubClient.hmset(pathfileval,resob1string) pubClient.hmset(pathfileval,resob1string)
pubClient.hgetall(pathfileval, function(err, object) { pubClient.hgetall(pathfileval, function(err, object) {
console.log('redis '+object); console.log('redis>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(object));
}); });
} }
resob.data = resobarray resob.data = resobarray

Loading…
Cancel
Save