This commit is contained in:
John Crepezzi 2012-09-27 11:47:23 -04:00
parent 4efc5d47d9
commit 93a83a35da

View File

@ -11,6 +11,7 @@ var winston = require('winston');
var RedisDocumentStore = function(options, client) { var RedisDocumentStore = function(options, client) {
this.expire = options.expire; this.expire = options.expire;
if (client) { if (client) {
winston.info('using predefined redis client');
RedisDocumentStore.client = client; RedisDocumentStore.client = client;
} else if (!RedisDocumentStore.client) { } else if (!RedisDocumentStore.client) {
RedisDocumentStore.connect(options); RedisDocumentStore.connect(options);