Connect-Redis module for jack-stack. Enables the storage of user sessions in Redis, rather than the non-production-ready MemoryStore.
$ npm install --save jack-stack-redis
To use this, you'll need to pass in your connect-redis configuration.
// 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));
// 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);