Skip to content

dncrews/jack-stack-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jack-Stack-Redis

NPM version Downloads Tips

Connect-Redis module for jack-stack. Enables the storage of user sessions in Redis, rather than the non-production-ready MemoryStore.

Installation

$ npm install --save jack-stack-redis

Usage

To use this, you'll need to pass in your connect-redis configuration.

ES6

// Replace with your actual Redis Config
import jack from 'jack-stack';
import jsRedis from 'jack-stack-redis';

const redisConfig = {
  host: 'localhost',
  port: 6379,
};

jack.use(jsRedis(redisConfig));

ES5

// Replace with your actual Redis Config
var redisConfig = {
  host: 'localhost',
  port: 6379,
};
var jack = require('jack-stack');
var jsRedis = require('jack-stack-redis')(redisConfig);

jack.use(jsRedis);

About

Connect-Redis module for jack-stack. Enables the storage of user sessions in a RedisStore, rather than the non-production-ready MemoryStore.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published