I am trying to utilize a Redis-based session store using connect-redis, communicating over UNIX Domain Sockets.
There is this: Redis Connection via socket on Node.js but the answer is specific to node-redis, and not the connect-redis for Redis session stores.
I thought it would be easy to get things going by creating my own node-redis object using and passing in a 'client' parameter, as described in the 'Options' section of the README here: https://github.com/visionmedia/connect-redis
But, when I do so, the req.session parameter never gets set on the Express application.
var Redis = require('redis');
var RedisStore = require('connect-redis')(express);
var redis = Redis.createClient(config['redis']['socket']);
And the session component:
app.use(express.session({
store: new RedisStore({client: redis})
}));
Am I missing something?