https://github.com/NodeRedis/node_redis/tree/master/examples demo


redisClient.hset("hash key", "hashtest 1", "some value");
redisClient.hmset("hash key",{"code001":"001","code002":"002"});

redisClient.hgetall("hash key","password",function (err,replies) {
})
redisClient.hgetall("hash key",function (err,replies) {
})

redisClient.hkeys("hash key", function (err, replies) {
replies.forEach(function (reply, i) {
console.log(" " + i + ": " + reply);
});
});

 posted on 2016-02-03 06:09  jayruan  阅读(113)  评论(0编辑  收藏  举报