added tag counts to api return

This commit is contained in:
barisusakli
2014-08-14 21:12:12 -04:00
parent 931d46fe7e
commit e10eaf0d50
4 changed files with 42 additions and 9 deletions

View File

@@ -113,6 +113,10 @@ module.exports = function(db, module) {
});
};
module.sortedSetsCard = function(keys, callback) {
async.map(keys, module.sortedSetCard, callback);
};
module.sortedSetRank = function(key, value, callback) {
module.getListRange(key, 0, -1, function(err, list) {
for (var i = 0, ii=list.length; i< ii; i++) {