v1.18.x
barisusakli 11 years ago
parent b338ac2a4c
commit d3fc71529a

@ -1,13 +1,9 @@
"use strict";
module.exports = function(redisClient, module) {
module.exports = function(redisClient, module) {
module.setObject = function(key, data, callback) {
// TODO: this crashes if callback isnt supplied -baris
redisClient.hmset(key, data, function(err, res) {
if(typeof callback === 'function') {
callback(err, res);
}
});
callback = callback || function() {};
redisClient.hmset(key, data, callback);
};
module.setObjectField = function(key, field, value, callback) {

Loading…
Cancel
Save