const newValue = await redis.json.nummultby("key", "$.path.to.array", 2);

Arguments

key
string
required

The key of the json entry.

path
string
default:
"$"

The path of the array.

multiply
number
required

The number to multiply by.

Response

The new value after multiplying

const newValue = await redis.json.nummultby("key", "$.path.to.array", 2);