Skip to content

Instantly share code, notes, and snippets.

@aedoran
Created April 27, 2012 19:25
Show Gist options
  • Save aedoran/2512048 to your computer and use it in GitHub Desktop.
Save aedoran/2512048 to your computer and use it in GitHub Desktop.
node redis example
for (var i in people) {
var id = i;
client.hmset(id,people[i],function() {});
client.sadd("proc", id);
}
client.multi()
.smembers("proc", function(err,res) {
_.each(res, function(r) {
client.hgetall(r,function(err,res) {
console.log(res);
});
});
})
.exec();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment