Skip to content

Commit e460806

Browse files
authored
Add JSON.MSET to commands.json (RedisJSON#982)
1 parent 02ecad7 commit e460806

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

commands.json

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
},
105105
"JSON.SET": {
106106
"summary": "Sets or updates the JSON value at a path",
107-
"complexity": "O(M+N) when path is evaluated to a single value where M is the size of the original value (if it exists) and N is the size of the new value, O(M+N) when path is evaluated to multiple values where M is the size of the key and N is the size of the new value",
107+
"complexity": "O(M+N) when path is evaluated to a single value where M is the size of the original value (if it exists) and N is the size of the new value, O(M+N) when path is evaluated to multiple values where M is the size of the key and N is the size of the new value * the number of original values in the key",
108108
"arguments": [
109109
{
110110
"name": "key",
@@ -139,9 +139,36 @@
139139
"since": "1.0.0",
140140
"group": "json"
141141
},
142+
"JSON.MSET": {
143+
"summary": "Sets or updates the JSON value of one or more keys",
144+
"complexity": "O(K*(M+N)) where k is the number of keys in the command, when path is evaluated to a single value where M is the size of the original value (if it exists) and N is the size of the new value, or O(K*(M+N)) when path is evaluated to multiple values where M is the size of the key and N is the size of the new value * the number of original values in the key",
145+
"arguments": [
146+
{
147+
"name": "triplet",
148+
"type": "block",
149+
"multiple": true,
150+
"arguments": [
151+
{
152+
"name": "key",
153+
"type": "key"
154+
},
155+
{
156+
"name": "path",
157+
"type": "string"
158+
},
159+
{
160+
"name": "value",
161+
"type": "string"
162+
}
163+
]
164+
}
165+
],
166+
"since": "2.6.0",
167+
"group": "json"
168+
},
142169
"JSON.MERGE": {
143170
"summary": "Sets or updates the JSON value at a path",
144-
"complexity": "O(M+N) when path is evaluated to a single value where M is the size of the original value (if it exists) and N is the size of the new value, O(M+N) when path is evaluated to multiple values where M is the size of the key and N is the size of the new value",
171+
"complexity": "O(M+N) when path is evaluated to a single value where M is the size of the original value (if it exists) and N is the size of the new value, O(M+N) when path is evaluated to multiple values where M is the size of the key and N is the size of the new value * the number of original values in the key",
145172
"arguments": [
146173
{
147174
"name": "key",

0 commit comments

Comments
 (0)