use helpers, redis crash fix

This commit is contained in:
barisusakli
2014-11-15 23:44:34 -05:00
parent 556e7066e8
commit 1d2d69fa45
2 changed files with 15 additions and 33 deletions

View File

@@ -70,6 +70,7 @@ module.exports = function(redisClient, module) {
};
module.delete = function(key, callback) {
callback = callback || function() {};
redisClient.del(key, function(err, res) {
callback(err);
});