Skip to content

Commit

Permalink
key
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 27, 2012
1 parent 1592e82 commit 354c9f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/stores/RedisStore.js
Expand Up @@ -14,15 +14,16 @@ var EventEmitter = require('events').EventEmitter
module.exports = RedisStore;

/**
* Initialize a `RedisStore` with optional `client`.
* Initialize a `RedisStore` with optional `client` and `key`.
*
* @param {RedisClient} client
* @param {String} key
* @api public
*/

function RedisStore(client) {
function RedisStore(client, key) {
this.db = client || redis.createClient();
this.key = 'jog';
this.key = key || 'jog';
this.rangeSize = 300;
}

Expand Down

0 comments on commit 354c9f1

Please sign in to comment.