Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

connect-redis-multiple

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-redis-multiple

connect multiple redis

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

connect-redis-multiple

connect-redis-multiple is a distributed Redis supported session store backed by connect-redis.

Installation

$ npm install connect-redis-multiple

Options

  • servers The redis server
  • balance The load balance strategy

servers is an array. The item of the array is options for connect-redis except access.

  • access The redis server is read-only, write-only or RW. RW, R, W

Any options not included in this list will be passed to the connect-redis directly.

Usage

Pass the express-session store into connect-redis-multiple to create a RedisStore constructor.

var options = {
    servers: [
        {
            host: '127.0.0.1',
            port: 7220,
            prefix: 'web-sess:',
            access: 'RW'
        }
    ],
    balance: 'random'
};

var session = require('express-session');
var MultipleRedisStore = require('connect-redis-multiple')(session);

app.use(session({
    store: new MultipleRedisStore(options),
    secret: 'keyboard cat'
}));

License

MIT

Keywords

FAQs

Package last updated on 14 May 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc