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

connect-redis

Package Overview
Dependencies
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-redis - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

8

History.md
2.4.0 / 2015-07-10
==================
* Add custom client support
* Add debug statement for redis client errors [scriptoLLC]
* Fix use Math.floor instead of |0 trick
* Removed send_anyway magic (unused)
2.3.0 / 2015-04-28

@@ -3,0 +11,0 @@ ==================

5

lib/connect-redis.js

@@ -22,3 +22,3 @@ /*!

return store.ttl || (typeof maxAge === 'number'
? maxAge / 1000 | 0
? Math.floor(maxAge / 1000)
: oneDay);

@@ -117,5 +117,3 @@ }

self.client.on('connect', function () {
self.client.send_anyways = true;
self.client.select(options.db);
self.client.send_anyways = false;
});

@@ -125,2 +123,3 @@ }

self.client.on('error', function (er) {
debug('Redis returned err', er);
self.emit('disconnect', er);

@@ -127,0 +126,0 @@ });

2

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

@@ -6,0 +6,0 @@ "contributors": [

@@ -20,3 +20,3 @@ # Connect Redis

A Redis client is required. An existing client can be passed directly using the `client` param or created for you using the `host`, `port`, or `socket` params.
- `client` An existing client created using `redis.createClient()`
- `client` An existing client
- `host` Redis server hostname

@@ -49,2 +49,8 @@ - `port` Redis server portno

## Custom Redis clients
Clients other than `node_redis` will work if they support the same interface. Just pass the client instance as the `client` configuration option. Known supported clients include:
* [ioredis](https://github.com/luin/ioredis) - adds support for Redis Sentinel and Cluster
## FAQ

@@ -51,0 +57,0 @@

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