no upgrade script yet
This commit is contained in:
barisusakli
2015-05-19 23:04:28 -04:00
parent 56e5f505a0
commit aa577f4adc
11 changed files with 202 additions and 151 deletions

View File

@@ -246,4 +246,14 @@ module.exports = function(redisClient, module) {
module.sortedSetIncrBy = function(key, increment, value, callback) {
redisClient.zincrby(key, increment, value, callback);
};
module.getSortedSetRangeByLex = function(key, min, max, start, count, callback) {
if (min !== '-') {
min = '[' + min;
}
if (max !== '+') {
max = '(' + max;
}
redisClient.zrangebylex([key, min, max, 'LIMIT', start, count], callback);
};
};