Json

JSON.NUMINCRBY

Increment the number value stored at `path` by number.

Arguments

keybodystrrequired

The key of the json entry.

pathbodystrrequired

The path of the number.

incrementbodynumberrequired

The number to increment by.

Response

List[int]required

The new value after incrementing

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