redis
来源:互联网 发布:三角形测试用例java 编辑:程序博客网 时间:2024/05/22 15:56
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);
}
});
});
0 0
- Redis
- redis
- Redis
- redis
- Redis
- redis
- Redis
- redis
- REDIS
- Redis
- Redis
- redis
- Redis
- Redis
- Redis
- Redis
- Redis
- Redis
- 常用的代码托管平台
- 序列介绍
- 汐月教育之理解TensorFlow(三.1)构建简单的BP神经网络+softmax多分类进行MNIST识别
- Coreseek开源中文检索引擎 coreseek-4.1 win7安装教程
- C++中vector的用法解析
- redis
- JZOJ 4810. 道路规划
- 【CodeForces 676】C - Vasya and String
- exit(0)与exit(1)、return区别
- Unity
- mysql索引问题
- 【Spring AOP】学习记录(二)
- javax.servlet.jsp.JspException cannot be resolved to a type
- 优先读者的读者/写者问题的算法设计