Permalink
Browse files

docs

  • Loading branch information...
1 parent 692229e commit 346997d5226f315085758570d50eba62fa7dbc05 @tj committed Jun 14, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 Readme.md
  2. +1 −1 lib/connect-redis.js
View
@@ -14,6 +14,7 @@ connect-redis is a Redis session store backed by [node_redis](http://github.com/
- `client` An existing redis client object you normally get from `redis.createClient()`
- `host` Redis server hostname
- `port` Redis server portno
+ - `ttl` Redis session TTL in seconds
- `db` Database index to use
- `pass` Password for Redis authentication
- `prefix` Key prefix defaulting to "sess:"
@@ -115,7 +115,7 @@ module.exports = function(connect){
ttl = ttl || ('number' == typeof maxAge
? maxAge / 1000 | 0
- : oneDay)
+ : oneDay);
debug('SETEX "%s" ttl:%s %s', sid, sess);
this.client.setex(sid, ttl, sess, function(err){

0 comments on commit 346997d

Please sign in to comment.