Json
JSON.ARRTRIM
Trim an array so that it contains only the specified inclusive range of elements.
Arguments
keybodystrrequired
The key of the json entry.
pathbodystrrequired
The path of the array.
startbodyintrequired
The start index of the range.
stopbodyintrequired
The stop index of the range.
Response
List[int]required
The length of the array after the trimming.
Example
length = redis.json.arrtrim("key", "$.path.to.array", 2, 10)