Allow redistogo
This commit is contained in:
@@ -8,9 +8,11 @@ var winston = require('winston');
|
||||
// options[db] - The db to use (default 0)
|
||||
// options[expire] - The time to live for each key set (default never)
|
||||
|
||||
var RedisDocumentStore = function(options) {
|
||||
var RedisDocumentStore = function(options, client) {
|
||||
this.expire = options.expire;
|
||||
if (!RedisDocumentStore.client) {
|
||||
if (client) {
|
||||
RedisDocumentStore.client = client;
|
||||
} else if (!RedisDocumentStore.client) {
|
||||
RedisDocumentStore.connect(options);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user