connect-redis
Advanced tools
Comparing version 3.4.1 to 3.4.2
@@ -220,2 +220,4 @@ /*! | ||
debug('DEL "%s"', sid); | ||
if (!fn) fn = noop; | ||
if (Array.isArray(sid)) { | ||
@@ -222,0 +224,0 @@ var multi = this.client.multi(); |
{ | ||
"name": "connect-redis", | ||
"description": "Redis session store for Connect", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -21,6 +21,6 @@ "contributors": [ | ||
"blue-tape": "^1.0.0", | ||
"bluebird": "^3.5.2", | ||
"bluebird": "^3.5.5", | ||
"eslint": "^3.19.0", | ||
"express-session": "^1.15.6", | ||
"ioredis": "^4.0.0", | ||
"express-session": "^1.16.2", | ||
"ioredis": "^4.10.0", | ||
"istanbul": "^0.4.5", | ||
@@ -27,0 +27,0 @@ "sinon": "^2.3.4", |
@@ -70,3 +70,3 @@ [![npm](https://img.shields.io/npm/v/connect-redis.svg)](https://npmjs.com/package/connect-redis) [![Dependencies](https://img.shields.io/david/tj/connect-redis.svg)](https://david-dm.org/tj/connect-redis) ![Downloads](https://img.shields.io/npm/dm/connect-redis.svg) | ||
By default, the `node_redis` client will [auto-reconnect](https://github.com/mranney/node_redis#overloading) when a connection is lost. But requests may come in during that time. In express, one way this scenario can be handled is including a "session check" after setting up a session (checking for the existence of `req.session`\): | ||
By default, the `node_redis` client will [auto-reconnect](https://github.com/mranney/node_redis#overloading) when a connection is lost. But requests may come in during that time. In Express, this scenario can be handled by including a "session check". | ||
@@ -73,0 +73,0 @@ ```js |
@@ -66,3 +66,15 @@ /* eslint-env es6 */ | ||
var store = new RedisStore({ client: client }); | ||
return lifecycleTest(store, t); | ||
return lifecycleTest(store, t).then(function () { | ||
t.test('#destroy()', function (p) { | ||
var spy = sinon.spy(ioRedis.prototype, 'sendCommand'); | ||
var sidName = 'randomname'; | ||
store.destroy(sidName); | ||
p.deepEqual( | ||
spy.firstCall.args[0].args, | ||
[store.prefix + sidName] | ||
); | ||
spy.restore(); | ||
p.end(); | ||
}); | ||
}); | ||
}); | ||
@@ -69,0 +81,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
24714
514