Socket
Socket
Sign inDemoInstall

connect-redis

Package Overview
Dependencies
12
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.4.0

5

History.md
1.4.0 / 2012-06-14
==================
* Added `ttl` option [Vyacheslav Bazhinov]
1.3.0 / 2012-03-23

@@ -3,0 +8,0 @@ ==================

10

lib/connect-redis.js

@@ -58,2 +58,4 @@

this.ttl = options.ttl;
if (options.db) {

@@ -112,7 +114,9 @@ var self = this;

var maxAge = sess.cookie.maxAge
, ttl = 'number' == typeof maxAge
? maxAge / 1000 | 0
: oneDay
, ttl = this.ttl
, sess = JSON.stringify(sess);
ttl = ttl || ('number' == typeof maxAge
? maxAge / 1000 | 0
: oneDay);
debug('SETEX "%s" ttl:%s %s', sid, sess);

@@ -119,0 +123,0 @@ this.client.setex(sid, ttl, sess, function(err){

{
"name": "connect-redis",
"description": "Redis session store for Connect",
"version": "1.3.0",
"version": "1.4.0",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -6,0 +6,0 @@ "main": "./index.js",

@@ -17,2 +17,3 @@

- `port` Redis server portno
- `ttl` Redis session TTL in seconds
- `db` Database index to use

@@ -19,0 +20,0 @@ - `pass` Password for Redis authentication

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc