summaryrefslogtreecommitdiff
path: root/src/commands/sentinel-config.json
diff options
context:
space:
mode:
authorWen Hui <wen.hui.ware@gmail.com>2023-05-17 03:26:02 -0400
committerGitHub <noreply@github.com>2023-05-17 10:26:02 +0300
commitdf1890ef7fc0691c0b940f00ddff14a1c395a52a (patch)
treed9d27067eab733ddd814397b4ee13d5f7fb0a22a /src/commands/sentinel-config.json
parentfd566f405094c77f5b6b84195c93552b9e01d4a8 (diff)
downloadredis-df1890ef7fc0691c0b940f00ddff14a1c395a52a.tar.gz
Allow SENTINEL CONFIG SET and SENTINEL CONFIG GET to handle multiple parameters. (#10362)HEADunstable
Extend SENTINEL CONFIG SET and SENTINEL CONFIG GET to be compatible with variadic CONFIG SET and CONFIG GET and allow multiple parameters to be modified in a single call atomically. Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'src/commands/sentinel-config.json')
-rw-r--r--src/commands/sentinel-config.json14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/commands/sentinel-config.json b/src/commands/sentinel-config.json
index ecc317603..6e3075f7c 100644
--- a/src/commands/sentinel-config.json
+++ b/src/commands/sentinel-config.json
@@ -1,12 +1,18 @@
{
"CONFIG": {
"summary": "Configures Redis Sentinel.",
- "complexity": "O(1)",
+ "complexity": "O(N) when N is the number of configuration parameters provided",
"group": "sentinel",
"since": "6.2.0",
"arity": -4,
"container": "SENTINEL",
"function": "sentinelCommand",
+ "history": [
+ [
+ "7.2.0",
+ "Added the ability to set and get multiple parameters in one call."
+ ]
+ ],
"command_flags": [
"ADMIN",
"SENTINEL",
@@ -42,7 +48,7 @@
"type": "string"
},
"announce-port": {
- "type": "integer"
+ "type": "string"
},
"sentinel-user": {
"type": "string"
@@ -87,6 +93,7 @@
"name":"set",
"token":"SET",
"type":"block",
+ "multiple": true,
"arguments":[
{
"name":"parameter",
@@ -101,7 +108,8 @@
{
"token":"GET",
"name":"parameter",
- "type":"string"
+ "type":"string",
+ "multiple": true
}
]
}