await redis.lpush("key", "a", "b", "c", "d"); await redis.ltrim("key", 1, 2); // the list is now ["b", "c"]
Trim a list to the specified range
OK
Was this page helpful?