Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@gasbuddy/redis-session

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gasbuddy/redis-session

A configuration driven session middleware for express.js

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@gasbuddy/redis-session

wercker status

A configuration-file driven express.js session store which uses Redis, but with HMGET/HMSET to allow for a microservice architecture to divide sessions in a useful way.

Sample configuration:

{
  "meddleware": {
    "module": "require:@gasbuddy/redis-sesssion",
    "arguments": [{
      "schemas": {
        "my-service-private-session": true,
        "my-service": true,
        "some-other-service": true,
      }
      "secret": 'MuchSecret',
      "resave": false,
      "saveUninitialized": false
    }]
  }
}

Note that this module requires a separately configured redis client (usually configured-redis-client) which is assumed to be found at app.gb.redis, but can be changed with a "client" configuration key that points to an instance of the redis client or a dot-capable property name relative to the app.

Keywords

redis

FAQs

Package last updated on 02 Apr 2017

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