const length = await redis.json.arrtrim("key", "$.path.to.array", 2, 10);
Trim an array so that it contains only the specified inclusive range of elements.
Was this page helpful?