The "all" in "hgetall" makes me think it gives me a list.
Maybe not what you did expect, because I assumed that rclient.hgetall
gives all items to the callback, not only one item.
exports.get_list = function ( cb) {
rclient.smembers("list", function(err, members) {
if(err) { return cb(err); }
if(members.length==0) return cb(null, 'lst');
members.forEach(function(member){
console.log(member)
rclient.hgetall(member, function(err, items) {
if(err) { return cb(err); }
console.log(items)
cb(null, 'lst');
})
})
})
}
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en