var redis=require('redis');
var client=redis.createClient(6379,'localhost');
client.on('ready',function(res){
console.log('ready');
})
app.get('/redis',function (req, res){
client.set('hello','thia is a value');
client.get('hello',function (err, re_es){
if(res){
re=re_es;
res.send('key:'+re);
}
});
});
var client=redis.createClient(6379,'localhost');
client.on('ready',function(res){
console.log('ready');
})
app.get('/redis',function (req, res){
client.set('hello','thia is a value');
client.get('hello',function (err, re_es){
if(res){
re=re_es;
res.send('key:'+re);
}
});
});