From 2f0e90a418b9a101d135f524dada3f963c3e3242 Mon Sep 17 00:00:00 2001 From: ali asaria Date: Mon, 14 Mar 2011 00:07:01 -0400 Subject: [PATCH] fix redis config type and make redis default --- config.js | 8 ++++---- lib/data/redis.js | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/config.js b/config.js index eeb77ff..ef55f6a 100644 --- a/config.js +++ b/config.js @@ -1,13 +1,13 @@ -exports.database = { +/*exports.database = { type: 'mongodb', hostname: 'localhost', port: 27017, database: 'scrumblr' }; +*/ -/* exports.database = { type: 'redis', - prefix = '#scrumscrum#' + prefix: '#scrumscrum#' }; -*/ + diff --git a/lib/data/redis.js b/lib/data/redis.js index 37b6e09..1bbc107 100644 --- a/lib/data/redis.js +++ b/lib/data/redis.js @@ -3,6 +3,8 @@ var redis = require("redis"), redisClient = redis.createClient(); +var async = require("async"); + // If you want Memory Store instead... // var MemoryStore = require('connect/middleware/session/memory'); // var session_store = new MemoryStore(); @@ -23,9 +25,9 @@ db.prototype = { clearRoom: function(room, callback) { redisClient.del(REDIS_PREFIX + '-room:/demo-cards', function (err, res) { redisClient.del(REDIS_PREFIX + '-room:/demo-columns', function (err, res) { - callback(); - } - } + callback(); + }); + }); }, // theme commands