redis-sessions
Advanced tools
Comparing version 1.0.0 to 1.0.1
# CHANGELOG | ||
## 1.0.1 | ||
* Modified docs to make it clear that TTL is specified in seconds | ||
* Introduced `wipe: 0` in options to disable wiping of expired sessions | ||
## 1.0.0 | ||
@@ -4,0 +9,0 @@ |
10
index.js
@@ -77,7 +77,9 @@ // Generated by CoffeeScript 1.9.3 | ||
})(this)); | ||
wipe = o.wipe || 600; | ||
if (wipe < 10) { | ||
wipe = 10; | ||
if (o.wipe !== 0) { | ||
wipe = o.wipe || 600; | ||
if (wipe < 10) { | ||
wipe = 10; | ||
} | ||
setInterval(this._wipe, wipe * 1000); | ||
} | ||
setInterval(this._wipe, wipe * 1000); | ||
} | ||
@@ -84,0 +86,0 @@ |
{ | ||
"name": "redis-sessions", | ||
"description": "An advanced session store for Redis", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "P. Liess <smrchy+npm@gmail.com>", | ||
@@ -6,0 +6,0 @@ "engines": { |
@@ -62,3 +62,3 @@ # Redis Sessions | ||
// `namespace`: *optional* Default: "rs". The namespace prefix for all Redis keys used by this module. | ||
// `wipe`: *optional* Default: 600. The interval in second after which the timed out sessions are wiped. No value less than 10 allowed. | ||
// `wipe`: *optional* Default: 600. The interval in seconds after which expired sessions are wiped. Only values `0` or greater than `10` allowed. Set to `0` to disable. | ||
// `client`: *optional* An external RedisClient object which will be used for the connection. | ||
@@ -78,3 +78,3 @@ // | ||
* `ip` (String) IP address of the user. This is used to show all ips from which the user is logged in. | ||
* `ttl` (Number) *optional* The "Time-To-Live" for the session. Default: 7200. | ||
* `ttl` (Number) *optional* The "Time-To-Live" for the session in seconds. Default: 7200. | ||
* `d` (Object) *optional* Additional data to set for this sessions. (see the "set" method) | ||
@@ -160,3 +160,3 @@ | ||
"idle": 21, // The idle time in seconds. | ||
"ttl": 7200, // Timeout after 7200 idle time | ||
"ttl": 7200, // Timeout after 7200 seconds idle time | ||
"d": | ||
@@ -163,0 +163,0 @@ { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95062
1407