195
I am working with Node.js and Express.js.
I try to store an account in session. So, I tried to use a session with this code in Express.js
var RedisStore = require('connect-redis')(express);
app.use(express.bodyParser());
app.use(express.cookieParser());
app.use(express.session({ secret: "keyboard cat", store: new RedisStore }));
but I got error:
Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED