Increment the number value stored at path by number.
path
const newValue = await redis.json.numincrby("key", "$.path.to.value", 2);
The key of the json entry.
The path of the array.
The number to increment by.
The new value after incrementing
Was this page helpful?