From 354c9f12610a2987f5ec06df04bf223ca200326d Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Mon, 26 Mar 2012 23:01:03 -0700 Subject: [PATCH] key --- lib/stores/RedisStore.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/stores/RedisStore.js b/lib/stores/RedisStore.js index 7d250ad..82ea4c1 100644 --- a/lib/stores/RedisStore.js +++ b/lib/stores/RedisStore.js @@ -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; }