1.0.2 • Published 9 years ago

jack-auth-redis v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

jack-auth-redis

NPM version Downloads

This Jack-Stack Plugin Configures express-session to use a redisstore instead of the memory store. If not configured, it fails to do so and console.warns you.

Configuration

You can either use node-config and set your variables with:

{
  db: {
    redis: {
      host: 'url',
      port: 6379
    }
  }
}

Or you can configure this plugin directly:

jack.add(require('jack-auth-redis').configure(
  host: 'url',
  port: 6379
}));