newValue = redis.json.numincrby("key", "$.path.to.value", 2)

Arguments

key
str
required
The key of the json entry.
path
str
required
The path of the number.
increment
number
required
The number to increment by.

Response

The new value after incrementing
newValue = redis.json.numincrby("key", "$.path.to.value", 2)