Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 370 Bytes

json.numincrby.md

File metadata and controls

16 lines (12 loc) · 370 Bytes

Increments the number value stored at path by number.

@return

@bulk-string-reply: the stringified new value for each path, or @nil-reply if the matching JSON value is not a number.

@examples

redis> JSON.SET doc . '{"a":"b","b":[{"a":2}, {"a":5}, {"a":"c"}]}'
OK
redis> JSON.NUMINCRBY doc $.a 2
"[null]"
redis> JSON.NUMINCRBY doc $..a 2
"[null,4,7,null]"