mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
part 1
no upgrade script yet
This commit is contained in:
@@ -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);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user