Avoids to delete empty keys

This commit is contained in:
Daniel García Aubert 2016-09-12 16:00:33 +02:00
parent ec23a9de67
commit 17411f2bb6

View File

@ -15,6 +15,10 @@ module.exports.clean = function clean(pattern, callback) {
return callback(err);
}
if (!keys || !keys.length) {
return callback();
}
metadataBackend.redisCmd(5, 'DEL', keys, callback);
});
};