🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
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

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

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"]
    }

//哨岗(sentinel)模式配置
//哨岗配置必须配置sentinels与主存的name
  "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){
  // to do
}).cathch(function(err){

});

FAQs

Package last updated on 11 Jul 2019

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