Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix redis config type and make redis default

  • Loading branch information...
commit 2f0e90a418b9a101d135f524dada3f963c3e3242 1 parent bdd989b
@aliasaria authored
Showing with 9 additions and 7 deletions.
  1. +4 −4 config.js
  2. +5 −3 lib/data/redis.js
View
8 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#'
};
-*/
+
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.