Skip to content

Commit 126ecbb

Browse files
authored
Update README.md
1 parent 43b8be6 commit 126ecbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ OK
6363
OK
6464
127.0.0.1:6379> json.index add person last $.last
6565
OK
66+
127.0.0.1:6379> json.index add person first $.first
67+
OK
6668
127.0.0.1:6379> JSON.QGET person Jo*
6769
"{\"user2\":[{\"last\":\"Joan\",\"first\":\"Mc\"}],\"user1\":[{\"last\":\"Joe\",\"first\":\"Mc\"}]}"
6870
127.0.0.1:6379> json.set user3 $ '{"last":"Joel", "first":"Dan"}' INDEX person
@@ -75,6 +77,8 @@ OK
7577
"{\"user2\":[{\"last\":\"Joan\",\"first\":\"Mc\"}],\"user1\":[{\"last\":\"Joe\",\"first\":\"Mc\"}]}"
7678
127.0.0.1:6379> JSON.QGET person Mc $.last
7779
"{\"user2\":[\"Joan\"],\"user1\":[\"Joe\"]}"
80+
127.0.0.1:6379> JSON.QGET person "@last:Jo* @first:Mc" $.last
81+
"{\"user2\":[\"Joan\"],\"user1\":[\"Joe\"]}"
7882
```
7983

8084
## Build

0 commit comments

Comments
 (0)