mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
LTRIM support for redis
This commit is contained in:
@@ -20,4 +20,8 @@ module.exports = function(redisClient, module) {
|
|||||||
module.getListRange = function(key, start, stop, callback) {
|
module.getListRange = function(key, start, stop, callback) {
|
||||||
redisClient.lrange(key, start, stop, callback);
|
redisClient.lrange(key, start, stop, callback);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
module.listTrim = function(key, start, stop, callback) {
|
||||||
|
redisClient.ltrim(key, start, stop, callback);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user