akyuu-redis-session
Advanced tools
Comparing version 1.0.0 to 1.1.0
13
index.js
@@ -20,4 +20,13 @@ /** | ||
this.akyuu.use(session({ | ||
store: new RedisStore(this.options), | ||
secret: this.options.secret | ||
store: new RedisStore(this.options.conn), | ||
cookie: this.options.cookie, | ||
genid: this.options.genid, | ||
name: this.options.name, | ||
proxy: this.options.proxy, | ||
resave: this.options.resave, | ||
rolling: this.options.rolling, | ||
saveUninitialized: this.options.saveUninitialized, | ||
secret: this.options.secret, | ||
unset: this.options.unset | ||
})); | ||
@@ -24,0 +33,0 @@ } |
{ | ||
"name": "akyuu-redis-session", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Session stored in redis based on Akyuu.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,9 +21,15 @@ # Akyuu Redis Session | ||
secret: "SECRET", | ||
host: "redis-server", | ||
port: PORT, | ||
name: "NAME", | ||
// All other parameters can be found on https://github.com/tj/connect-redis#options | ||
// All other session parameters can be found on https://github.com/expressjs/session#options | ||
conn: { | ||
host: "redis-server", | ||
port: PORT, | ||
// All other redis parameters can be found on https://github.com/tj/connect-redis#options | ||
} | ||
} | ||
``` | ||
> You may get full parameters list on [https://github.com/tj/connect-redis#options](https://github.com/tj/connect-redis#options). | ||
> You may get full parameters list on [https://github.com/tj/connect-redis#options](https://github.com/tj/connect-redis#options) and [https://github.com/expressjs/session#options](https://github.com/expressjs/session#options). |
4291
32
35