Skip to content

Commit e804e8c

Browse files
authored
Update valkey-json example (#378)
Update and mention the return value of JSON.SET. Signed-off-by: Binbin <[email protected]>
1 parent 1b2151c commit e804e8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

topics/valkey-json.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ OK
187187
[{"price":15,"sold":false,"title":"abc"}]
188188
189189
127.0.0.1:6379> JSON.SET k2 . '[1,2,3,4,5]'
190+
OK
190191
127.0.0.1:6379> JSON.GET k2 $.*.[?(@>2)]
191192
"[3,4,5]"
192193
127.0.0.1:6379> JSON.GET k2 '$.*.[?(@ > 2)]'

0 commit comments

Comments
 (0)