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

Arguments

key
str
required

The key of the json entry.

path
str
default:
"$"

The path of the array.

increment
number
required

The number to increment by.

Response

The new value after incrementing