light-api-redis
2019-07-11 发布1.0.4版本
1.增加redis的cluster连接
"redis":{
"cluster":[{"port": 6379,"host": "127.0.0.1"},{"port": 6380,"host": "127.0.0.1"},{"port": 6381,"host": "127.0.0.1"}],
"clusterOption":{"scaleReads": "slave"},
"password":"",
"cache":true,
"mq":false,
"channels":["channel1","channel2"]
}
2018-03-13 发布1.0.3版本
1.增加redis单机模式连接
"redis":{
"host":"lcoalhsost:6379",
"password":"",
"cache":true,
"mq":false,
"channels":["channel1","channel2"]
}
"redis":{
"sentinels":["lcoalhsost:26379"],
"name": "mymaster",
"password":"",
"cache":true,
"mq":false,
"channels":["channel1","channel2"]
}
2017-09-4 发布1.0.2版本
1.增加redis的通用方法,可执行redis的所有api
cache.exeFun(command,...args)
.then(function(data){
}).cathch(function(err){
});