Answer the question
In order to leave comments, you need to log in
Why does redis swear?
I use connect-redis in conjunction with express-session:
const redis = require('redis').createClient(),
session = require('express-session'),
RedisStore = require('connect-redis')(session);
app.use(session({
store: new RedisStore({host: 'localhost', port: 6379, client: redis, ttl: 3600}),
secret: 'md5q',
}));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question