Skip to content

Commit

Permalink
Easier to skim read and understand
Browse files Browse the repository at this point in the history
Although this change increases the number of characters in the example, it's easier to see the option requires a "client" key without reading through the options further down.

PR: #286
  • Loading branch information
ben-styling authored and wavded committed Oct 14, 2019
1 parent 272f940 commit cf96017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -25,11 +25,11 @@ const redis = require('redis')
const session = require('express-session')

let RedisStore = require('connect-redis')(session)
let client = redis.createClient()
let redisClient = redis.createClient()

app.use(
session({
store: new RedisStore({ client }),
store: new RedisStore({ client: redisClient }),
secret: 'keyboard cat',
resave: false,
})
Expand Down

0 comments on commit cf96017

Please sign in to comment.