Redisを使って、node.js上でhashのset,getする方法について記載。
var client = require('redis').createClient();
client.hset("hash key", "hashtest 1", "some value",function(){});
client.hget("hash key", "hashtest 1",function(err,val){
console.log(val);
});
以上
Go to list of users who liked
More than 5 years have passed since last update.
Redisを使って、node.js上でhashのset,getする方法について記載。
var client = require('redis').createClient();
client.hset("hash key", "hashtest 1", "some value",function(){});
client.hget("hash key", "hashtest 1",function(err,val){
console.log(val);
});
以上
Register as a new user and use Qiita more conveniently
Go to list of users who liked