Json
JSON.NUMINCRBY
Increment the number value stored at `path` by number.
Arguments
keybodystringrequired
The key of the json entry.
pathbodystringrequired
The path of the array. $ is the root.
incrementbodynumberrequired
The number to increment by.
Response
integer[]required
The new value after incrementing
Example
const newValue = await redis.json.numincrby("key", "$.path.to.value", 2);