Json
JSON.NUMMULTBY
Multiply the number value stored at path
by number.
const newValue = await redis.json.nummultby("key", "$.path.to.array", 2);
Arguments
key
string
requiredThe key of the json entry.
path
string
default: "$"The path of the array.
multiply
number
requiredThe number to multiply by.
Response
The new value after multiplying
Was this page helpful?
const newValue = await redis.json.nummultby("key", "$.path.to.array", 2);