LTRIM support for redis

This commit is contained in:
psychobunny
2014-07-28 14:20:24 -04:00
parent cf031be904
commit 7327730252

View File

@@ -20,4 +20,8 @@ module.exports = function(redisClient, module) {
module.getListRange = function(key, start, stop, callback) {
redisClient.lrange(key, start, stop, callback);
};
module.listTrim = function(key, start, stop, callback) {
redisClient.ltrim(key, start, stop, callback);
};
};