🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

light-api-redis

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

light-api-redis

this plugin of the light-api server for reids service

npmnpm
Version
1.0.3
Version published
Weekly downloads
1
-91.67%
Maintainers
1
Weekly downloads
 
Created
Source

light-api-redis

2017-09-4 发布1.0.2版本

1.增加redis的通用方法,可执行redis的所有api


cache.exeFun(command,...args)
.then(function(data){
  // to do
}).cathch(function(err){

});

2018-03-13 发布1.0.3版本

1.增加redis单机模式连接

//单机模式配置
  "redis":{
        "host":"lcoalhsost:6379",
        "password":"",
        "cache":true,
        "mq":false,
        "channels":["channel1","channel2"]
    }

//哨岗(sentinel)模式配置
//哨岗配置必须配置sentinels与主存的name
  "redis":{
        "sentinels":["lcoalhsost:26379"],
        "name": "mymaster",
        "password":"",
        "cache":true,
        "mq":false,
        "channels":["channel1","channel2"]
    }

FAQs

Package last updated on 13 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts