mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
passing array straight to redis
This commit is contained in:
@@ -360,13 +360,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
module.getSortedSetRangeByScore = function(key, start, count, min, max, callback) {
|
module.getSortedSetRangeByScore = function(key, start, count, min, max, callback) {
|
||||||
var args = [key, min, max, 'LIMIT', start, count];
|
redisClient.zrangebyscore([key, min, max, 'LIMIT', start, count], callback);
|
||||||
redisClient.zrangebyscore(args, callback);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.getSortedSetRevRangeByScore = function(key, start, count, max, min, callback) {
|
module.getSortedSetRevRangeByScore = function(key, start, count, max, min, callback) {
|
||||||
var args = [key, max, min, 'LIMIT', start, count];
|
redisClient.zrevrangebyscore([key, max, min, 'LIMIT', start, count], callback);
|
||||||
redisClient.zrevrangebyscore(args, callback);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.sortedSetCount = function(key, min, max, callback) {
|
module.sortedSetCount = function(key, min, max, callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user