Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redis-sessions

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-sessions - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

CHANGELOG.md
# 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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc