Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed clear() and length() methods

for now at least. we could add some more down the road and
add these back when they respect prefixed keys
  • Loading branch information...
commit 2e5c43aedbb5eec0a6a223265e71563a3274ada6 1 parent 0e1c105
@tj authored
Showing with 0 additions and 22 deletions.
  1. +0 −22 lib/connect-redis.js
View
22 lib/connect-redis.js
@@ -126,27 +126,5 @@ module.exports = function(connect){
this.client.del(sid, fn);
};
- /**
- * Fetch number of sessions.
- *
- * @param {Function} fn
- * @api public
- */
-
- RedisStore.prototype.length = function(fn){
- this.client.dbsize(fn);
- };
-
- /**
- * Clear all sessions.
- *
- * @param {Function} fn
- * @api public
- */
-
- RedisStore.prototype.clear = function(fn){
- this.client.flushdb(fn);
- };
-
return RedisStore;
};
Please sign in to comment.
Something went wrong with that request. Please try again.