Arguments
string
required
The key of the json entry.
string
required
The path of the array.
$ is the root.number
required
The number to increment by.
Response
The new value after incrementing
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
const newValue = await redis.json.numincrby("key", "$.path.to.value", 2);
Increment the number value stored at path by number.
$ is the root.const newValue = await redis.json.numincrby("key", "$.path.to.value", 2);
Was this page helpful?