Added postgres adapter

This commit is contained in:
John Crepezzi 2014-06-09 16:50:43 -04:00
commit ab029eae2f
3 changed files with 66 additions and 61 deletions

View file

@ -37,7 +37,7 @@ if (!config.storage.type) {
var Store, preferredStore;
if (process.env.REDISTOGO_URL) {
if (process.env.REDISTOGO_URL && config.storage.type === 'redis') {
var redisClient = require('redis-url').connect(process.env.REDISTOGO_URL);
Store = require('./lib/document_stores/redis');
preferredStore = new Store(config.storage, redisClient);