diff --git a/src/database/redis/hash.js b/src/database/redis/hash.js index ee60ba98a2..92ae7017c0 100644 --- a/src/database/redis/hash.js +++ b/src/database/redis/hash.js @@ -1,6 +1,9 @@ "use strict"; module.exports = function(redisClient, module) { + + var helpers = module.helpers.redis; + module.setObject = function(key, data, callback) { callback = callback || function() {}; redisClient.hmset(key, data, function(err) { @@ -20,28 +23,18 @@ module.exports = function(redisClient, module) { }; module.getObjects = function(keys, callback) { - var multi = redisClient.multi(); - - for(var x=0; x