connect-redis
Advanced tools
Comparing version 2.3.0 to 2.4.0
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 @@ ================== |
@@ -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 @@ }); |
{ | ||
"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 @@ |
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
16987
79
326