M
M
Michael2016-09-24 00:42:23
Redis
Michael, 2016-09-24 00:42:23

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',
}));

But in the console I see:
7bd974f2e295440eb571fd432f0b003e.png
Although I passed all the parameters. How to fix?
https://github.com/tj/connect-redis
- here is the module redis itself is running

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question