You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"complexity": "O(N) when path is evaluated to a single value where N is the size of the deleted value, O(N) when path is evaluated to multiple values, where N is the size of the key",
23
+
"arguments": [
24
+
{
25
+
"name": "key",
26
+
"type": "key"
27
+
},
28
+
{
29
+
"name": "path",
30
+
"type": "string",
31
+
"optional": true
32
+
}
33
+
],
34
+
"since": "1.0.0",
35
+
"group": "module",
36
+
"module": "ReJSON"
18
37
},
19
38
"JSON.GET": {
20
39
"summary": "Gets the value at one or more paths in JSON serialized form",
@@ -50,7 +69,8 @@
50
69
}
51
70
],
52
71
"since": "1.0.0",
53
-
"group": "json"
72
+
"group": "module",
73
+
"module": "ReJSON"
54
74
},
55
75
"JSON.TOGGLE": {
56
76
"summary": "Toggles a boolean value",
@@ -67,7 +87,8 @@
67
87
}
68
88
],
69
89
"since": "2.0.0",
70
-
"group": "json"
90
+
"group": "module",
91
+
"module": "ReJSON"
71
92
},
72
93
"JSON.CLEAR": {
73
94
"summary": "Clears all values from an array or an object, sets numeric values to `0`, sets string values to empty, and sets boolean values to `false`",
@@ -84,7 +105,8 @@
84
105
}
85
106
],
86
107
"since": "2.0.0",
87
-
"group": "json"
108
+
"group": "module",
109
+
"module": "ReJSON"
88
110
},
89
111
"JSON.SET": {
90
112
"summary": "Sets or updates the JSON value at a path",
@@ -104,16 +126,23 @@
104
126
},
105
127
{
106
128
"name": "condition",
107
-
"type": "enum",
108
-
"enum": [
109
-
"NX",
110
-
"XX"
129
+
"type": "oneof",
130
+
"arguments": [
131
+
{
132
+
"name": "NX",
133
+
"type": "pure-token"
134
+
},
135
+
{
136
+
"name": "XX",
137
+
"type": "pure-token"
138
+
}
111
139
],
112
140
"optional": true
113
141
}
114
142
],
115
143
"since": "1.0.0",
116
-
"group": "json"
144
+
"group": "module",
145
+
"module": "ReJSON"
117
146
},
118
147
"JSON.MGET": {
119
148
"summary": "Returns the values at a path from one or more keys",
@@ -130,7 +159,8 @@
130
159
}
131
160
],
132
161
"since": "1.0.0",
133
-
"group": "json"
162
+
"group": "module",
163
+
"module": "ReJSON"
134
164
},
135
165
"JSON.NUMINCRBY": {
136
166
"summary": "Increments the numeric value at path by a value",
@@ -150,7 +180,29 @@
150
180
}
151
181
],
152
182
"since": "1.0.0",
153
-
"group": "json"
183
+
"group": "module",
184
+
"module": "ReJSON"
185
+
},
186
+
"JSON.NUMMULTBY": {
187
+
"summary": "Multiplies the numeric value at path by a value",
188
+
"complexity": "O(1) when path is evaluated to a single value, O(N) when path is evaluated to multiple values, where N is the size of the key",
189
+
"arguments": [
190
+
{
191
+
"name": "key",
192
+
"type": "key"
193
+
},
194
+
{
195
+
"name": "path",
196
+
"type": "string"
197
+
},
198
+
{
199
+
"name": "value",
200
+
"type": "double"
201
+
}
202
+
],
203
+
"since": "1.0.0",
204
+
"group": "module",
205
+
"module": "ReJSON"
154
206
},
155
207
"JSON.STRAPPEND": {
156
208
"summary": "Appends a string to a JSON string value at path",
@@ -171,7 +223,8 @@
171
223
}
172
224
],
173
225
"since": "1.0.0",
174
-
"group": "json"
226
+
"group": "module",
227
+
"module": "ReJSON"
175
228
},
176
229
"JSON.STRLEN": {
177
230
"summary": "Returns the length of the JSON String at path in key",
@@ -188,10 +241,11 @@
188
241
}
189
242
],
190
243
"since": "1.0.0",
191
-
"group": "json"
244
+
"group": "module",
245
+
"module": "ReJSON"
192
246
},
193
247
"JSON.ARRAPPEND": {
194
-
"summary": "Appends JSON value(s) to the JSON array at path",
248
+
"summary": "Append one or more json values into the array at path after the last element in it.",
195
249
"complexity": "O(1) when path is evaluated to a single value, O(N) when path is evaluated to multiple values, where N is the size of the key",
196
250
"arguments": [
197
251
{
@@ -210,7 +264,8 @@
210
264
}
211
265
],
212
266
"since": "1.0.0",
213
-
"group": "json"
267
+
"group": "module",
268
+
"module": "ReJSON"
214
269
},
215
270
"JSON.ARRINDEX": {
216
271
"summary": "Returns the index of the first occurrence of a JSON scalar value in the array at path",
@@ -231,7 +286,7 @@
231
286
{
232
287
"type": "block",
233
288
"optional": true,
234
-
"block": [
289
+
"arguments": [
235
290
{
236
291
"name": "start",
237
292
"type": "integer"
@@ -245,7 +300,8 @@
245
300
}
246
301
],
247
302
"since": "1.0.0",
248
-
"group": "json"
303
+
"group": "module",
304
+
"module": "ReJSON"
249
305
},
250
306
"JSON.ARRINSERT": {
251
307
"summary": "Inserts the JSON scalar(s) value at the specified index in the array at path",
@@ -270,7 +326,8 @@
270
326
}
271
327
],
272
328
"since": "1.0.0",
273
-
"group": "json"
329
+
"group": "module",
330
+
"module": "ReJSON"
274
331
},
275
332
"JSON.ARRLEN": {
276
333
"summary": "Returns the length of the array at path",
@@ -283,11 +340,12 @@
283
340
{
284
341
"name": "path",
285
342
"type": "string",
286
-
"multiple": true
343
+
"optional": true
287
344
}
288
345
],
289
346
"since": "1.0.0",
290
-
"group": "json"
347
+
"group": "module",
348
+
"module": "ReJSON"
291
349
},
292
350
"JSON.ARRPOP": {
293
351
"summary": "Removes and returns the element at the specified index in the array at path",
@@ -300,7 +358,7 @@
300
358
{
301
359
"type": "block",
302
360
"optional": true,
303
-
"block": [
361
+
"arguments": [
304
362
{
305
363
"name": "path",
306
364
"type": "string"
@@ -314,7 +372,8 @@
314
372
}
315
373
],
316
374
"since": "1.0.0",
317
-
"group": "json"
375
+
"group": "module",
376
+
"module": "ReJSON"
318
377
},
319
378
"JSON.ARRTRIM": {
320
379
"summary": "Trims the array at path to contain only the specified inclusive range of indices from start to stop",
@@ -338,7 +397,8 @@
338
397
}
339
398
],
340
399
"since": "1.0.0",
341
-
"group": "json"
400
+
"group": "module",
401
+
"module": "ReJSON"
342
402
},
343
403
"JSON.OBJKEYS": {
344
404
"summary": "Returns the JSON keys of the object at path",
@@ -355,7 +415,8 @@
355
415
}
356
416
],
357
417
"since": "1.0.0",
358
-
"group": "json"
418
+
"group": "module",
419
+
"module": "ReJSON"
359
420
},
360
421
"JSON.OBJLEN": {
361
422
"summary": "Returns the number of keys of the object at path",
@@ -372,7 +433,8 @@
372
433
}
373
434
],
374
435
"since": "1.0.0",
375
-
"group": "json"
436
+
"group": "module",
437
+
"module": "ReJSON"
376
438
},
377
439
"JSON.TYPE": {
378
440
"summary": "Returns the type of the JSON value at path",
@@ -389,7 +451,8 @@
389
451
}
390
452
],
391
453
"since": "1.0.0",
392
-
"group": "json"
454
+
"group": "module",
455
+
"module": "ReJSON"
393
456
},
394
457
"JSON.RESP": {
395
458
"summary": "Returns the JSON value at path in Redis Serialization Protocol (RESP)",
@@ -406,6 +469,45 @@
406
469
}
407
470
],
408
471
"since": "1.0.0",
409
-
"group": "json"
472
+
"group": "module",
473
+
"module": "ReJSON"
474
+
},
475
+
"JSON.DEBUG": {
476
+
"summary": "Debugging container command",
477
+
"complexity": "N/A",
478
+
"since": "1.0.0",
479
+
"group": "module",
480
+
"module": "ReJSON"
481
+
},
482
+
"JSON.DEBUG HELP": {
483
+
"summary": "Shows helpful information",
484
+
"complexity": "N/A",
485
+
"since": "1.0.0",
486
+
"group": "module",
487
+
"module": "ReJSON"
488
+
},
489
+
"JSON.DEBUG MEMORY": {
490
+
"summary": "Reports the size in bytes of a key",
491
+
"complexity": "O(N) when path is evaluated to a single value, where N is the size of the value, O(N) when path is evaluated to multiple values, where N is the size of the key",
0 commit comments