Tuesday 16 May 2017

How to return result values from node_redis function

I need to return the replies from this function and use the replies in other function. I am newbie to NodeJs and trying to figure out a simple solution.

    var getKeys = function(key){
      var addkey = key + '*'
      myClient.keys(addkey, function (err, replies) {
        console.log(replies);
      });
    }



via Karthikeyan Prakash

No comments:

Post a Comment