Multiply the number value stored at path
by number
key
is key to modify.
value
is number value to multiply.
path
is JSONPath to specify. Default is root $
.
JSON.NUMMULTBY returns a bulk string reply specified as a stringified new values for each path, or nil
element if the matching JSON value is not a number.
For more information about replies, see Redis serialization protocol specification.
{{< highlight bash >}}
127.0.0.1:6379> JSON.SET doc . '{"a":"b","b":[{"a":2}, {"a":5}, {"a":"c"}]}'
OK
127.0.0.1:6379> JSON.NUMMULTBY doc
JSON.NUMINCRBY
| JSON.ARRINSERT