Skip to content

Commit b83d3d1

Browse files
authored
Update json.numincrby.md
1 parent 5650065 commit b83d3d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/commands/json.numincrby.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ For more information about replies, see [Redis serialization protocol specificat
3232
Create a document.
3333

3434
{{< highlight bash >}}
35-
127.0.0.1:6379> JSON.SET doc . '{"a":"b","b":[{"a":2}, {"a":5}, {"a":"c"}]}'
35+
redis> JSON.SET doc . '{"a":"b","b":[{"a":2}, {"a":5}, {"a":"c"}]}'
3636
OK
3737
{{< / highlight >}}
3838

3939
Increment a value of `a` object by 2. The command fails to find a number and returns `null`.
4040

4141
{{< highlight bash >}}
42-
127.0.0.1:6379> JSON.NUMINCRBY doc $.a 2
42+
redis> JSON.NUMINCRBY doc $.a 2
4343
"[null]"
4444
{{< / highlight >}}
4545

4646
Recursively find and increment a value of all `a` objects. The command increments numbers it finds and returns `null` for nonnumber values.
4747

4848
{{< highlight bash >}}
49-
127.0.0.1:6379> JSON.NUMINCRBY doc $..a 2
49+
redis> JSON.NUMINCRBY doc $..a 2
5050
"[null,4,7,null]"
5151
{{< / highlight >}}
5252

0 commit comments

Comments
 (0)