redis

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);
});
});

你可能感兴趣的:(redis)