JSON.NUMMULTBY (deprecated)

As of Redis version 2.0, this command is regarded as deprecated.

JSON.NUMMULTBY key path value
Available in:
Redis Stack / JSON 1.0.0
Time complexity:
O(1) when path is evaluated to a single value, O(N) when path is evaluated to multiple values, where N is the size of the key

Multiplies the number value stored at path by number.


Bulk string reply - the stringified new values for each path, or Null reply element if the matching JSON value is not a number.


redis> JSON.SET doc . '{"a":"b","b":[{"a":2}, {"a":5}, {"a":"c"}]}'
redis> JSON.NUMMULTBY doc $.a 2
redis> JSON.NUMMULTBY doc $..a 2


If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.