File tree 1 file changed +26
-1
lines changed
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# RedisJSON
5
5
6
+ ## Usage
7
+
8
+ JSON.INDEX ADD <index> <field> <path>
9
+ JSON.INDEX DEL <index> <field>
10
+ JSON.INDEX INFO <index> <field>
11
+
12
+ JSON.QGET <index> <query> <path>
13
+ JSON.QSET <index> <query> <path> <json> [NX | XX]
14
+ JSON.QDEL <index> <query> <path>
15
+
16
+ Return value from JSON.QGET is an array of keys and values:
17
+
18
+ key
19
+ json
20
+ key
21
+ json
22
+
23
+ In a language such as Java this could be represented as a ` Map<String, Document> ` .
24
+
25
+ A query combining multiple paths:
26
+
27
+ JSON.QGET mytype "@path1 : hello @path2 : world " d.name
28
+
6
29
7
30
## Build
31
+
8
32
``` bash
9
33
cargo build --release
10
34
```
11
35
12
36
## Run
37
+
13
38
```
14
- redis-server --loadmodule ./target/release/libredisjson.so
39
+ redis-server --loadmodule ./target/release/libredisjson.so
15
40
```
You can’t perform that action at this time.
0 commit comments