Json
JSON.ARRINSERT
Insert the json values into the array at path before the index (shifts to the right).
Arguments
keybodystrrequired
The key of the json entry.
pathbodystrrequired
The path of the array.
indexbodyintrequired
The index where to insert the values.
valuesbody...TValue[]required
One or more values to append to the array.
Response
List[int]required
The length of the array after the insertion.
Example
length = redis.json.arrinsert("key", "$.path.to.array", 2, "a", "b")