Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- run: function(api, data, next){
- api.redis_dbs[1].keys("*")
- .then(function (result) {
- promises = []
- for (key in result)
- {
- promises[key] = api.redis_dbs[1].hgetall(key);
- }
- Promise.all(promises).then(values =>
- {
- data.response.values = values;
- console.log("Finished");
- next();
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement