Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
72935b9d
Commit
72935b9d
authored
Mar 21, 2023
by
Vitaly Arbuzov
Browse files
Merge branch 'unstable' into dict-split-by-slot
parents
6baf20af
6948daca
Changes
456
Hide whitespace changes
Inline
Side-by-side
src/commands/script-kill.json
View file @
72935b9d
...
...
@@ -17,6 +17,9 @@
"command_tips"
:
[
"REQUEST_POLICY:ALL_SHARDS"
,
"RESPONSE_POLICY:ONE_SUCCEEDED"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
src/commands/script-load.json
View file @
72935b9d
...
...
@@ -23,6 +23,10 @@
"name"
:
"script"
,
"type"
:
"string"
}
]
],
"reply_schema"
:
{
"description"
:
"The SHA1 digest of the script added into the script cache"
,
"type"
:
"string"
}
}
}
src/commands/sdiff.json
View file @
72935b9d
...
...
@@ -35,6 +35,14 @@
}
}
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"List with the members of the resulting set."
,
"uniqueItems"
:
true
,
"items"
:
{
"type"
:
"string"
}
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/sdiffstore.json
View file @
72935b9d
...
...
@@ -51,6 +51,11 @@
}
}
],
"reply_schema"
:
{
"description"
:
"Number of the elements in the resulting set."
,
"type"
:
"integer"
,
"minimum"
:
0
},
"arguments"
:
[
{
"name"
:
"destination"
,
...
...
src/commands/select.json
View file @
72935b9d
...
...
@@ -14,6 +14,9 @@
"acl_categories"
:
[
"CONNECTION"
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"index"
,
...
...
src/commands/sentinel-ckquorum.json
View file @
72935b9d
...
...
@@ -11,6 +11,11 @@
"SENTINEL"
,
"ONLY_SENTINEL"
],
"reply_schema"
:
{
"type"
:
"string"
,
"description"
:
"Returns OK if the current Sentinel configuration is able to reach the quorum needed to failover a master, and the majority needed to authorize the failover."
,
"pattern"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"master-name"
,
...
...
src/commands/sentinel-config.json
View file @
72935b9d
...
...
@@ -12,6 +12,72 @@
"SENTINEL"
,
"ONLY_SENTINEL"
],
"reply_schema"
:
{
"oneOf"
:
[
{
"type"
:
"object"
,
"description"
:
"When 'SENTINEL-CONFIG GET' is called, returns a map."
,
"properties"
:
{
"resolve-hostnames"
:
{
"oneOf"
:
[
{
"const"
:
"yes"
},
{
"const"
:
"no"
}
]
},
"announce-hostnames"
:
{
"oneOf"
:
[
{
"const"
:
"yes"
},
{
"const"
:
"no"
}
]
},
"announce-ip"
:
{
"type"
:
"string"
},
"announce-port"
:
{
"type"
:
"integer"
},
"sentinel-user"
:
{
"type"
:
"string"
},
"sentinel-pass"
:
{
"type"
:
"string"
},
"loglevel"
:
{
"oneOf"
:
[
{
"const"
:
"debug"
},
{
"const"
:
"verbose"
},
{
"const"
:
"notice"
},
{
"const"
:
"warning"
},
{
"const"
:
"unknown"
}
]
}
},
"additionalProperties"
:
false
},
{
"const"
:
"OK"
,
"description"
:
"When 'SENTINEL-CONFIG SET' is called, returns OK on success."
}
]
},
"arguments"
:
[
{
"name"
:
"action"
,
...
...
src/commands/sentinel-failover.json
View file @
72935b9d
...
...
@@ -11,6 +11,10 @@
"SENTINEL"
,
"ONLY_SENTINEL"
],
"reply_schema"
:
{
"const"
:
"OK"
,
"description"
:
"Force a fail over as if the master was not reachable, and without asking for agreement to other Sentinels."
},
"arguments"
:
[
{
"name"
:
"master-name"
,
...
...
src/commands/sentinel-flushconfig.json
View file @
72935b9d
...
...
@@ -11,6 +11,10 @@
"ADMIN"
,
"SENTINEL"
,
"ONLY_SENTINEL"
]
],
"reply_schema"
:
{
"const"
:
"OK"
,
"description"
:
"Force Sentinel to rewrite its configuration on disk, including the current Sentinel state."
}
}
}
src/commands/sentinel-get-master-addr-by-name.json
View file @
72935b9d
...
...
@@ -12,6 +12,22 @@
"SENTINEL"
,
"ONLY_SENTINEL"
],
"reply_schema"
:
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"type"
:
"string"
,
"description"
:
"IP addr or hostname."
},
{
"type"
:
"string"
,
"description"
:
"Port."
,
"pattern"
:
"[0-9]+"
}
]
},
"arguments"
:
[
{
"name"
:
"master-name"
,
...
...
src/commands/sentinel-help.json
View file @
72935b9d
...
...
@@ -12,6 +12,13 @@
"STALE"
,
"SENTINEL"
,
"ONLY_SENTINEL"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"Helpful text about subcommands."
,
"items"
:
{
"type"
:
"string"
}
}
}
}
src/commands/sentinel-is-master-down-by-addr.json
View file @
72935b9d
...
...
@@ -12,6 +12,33 @@
"SENTINEL"
,
"ONLY_SENTINEL"
],
"reply_schema"
:
{
"type"
:
"array"
,
"minItems"
:
3
,
"maxItems"
:
3
,
"items"
:
[
{
"oneOf"
:
[
{
"const"
:
0
,
"description"
:
"Master is up."
},
{
"const"
:
1
,
"description"
:
"Master is down."
}
]
},
{
"type"
:
"string"
,
"description"
:
"Sentinel address."
},
{
"type"
:
"integer"
,
"description"
:
"Port."
}
]
},
"arguments"
:
[
{
"name"
:
"ip"
,
...
...
src/commands/sentinel-master.json
View file @
72935b9d
...
...
@@ -12,6 +12,13 @@
"SENTINEL"
,
"ONLY_SENTINEL"
],
"reply_schema"
:
{
"type"
:
"object"
,
"description"
:
"The state and info of the specified master."
,
"additionalProperties"
:
{
"type"
:
"string"
}
},
"arguments"
:
[
{
"name"
:
"master-name"
,
...
...
src/commands/sentinel-monitor.json
View file @
72935b9d
...
...
@@ -12,6 +12,9 @@
"SENTINEL"
,
"ONLY_SENTINEL"
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"name"
,
...
...
src/commands/sentinel-remove.json
View file @
72935b9d
...
...
@@ -12,6 +12,9 @@
"SENTINEL"
,
"ONLY_SENTINEL"
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"master-name"
,
...
...
src/commands/sentinel-replicas.json
View file @
72935b9d
...
...
@@ -12,6 +12,16 @@
"SENTINEL"
,
"ONLY_SENTINEL"
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"List of replicas for this master, and their state."
,
"items"
:
{
"type"
:
"object"
,
"additionalProperties"
:
{
"type"
:
"string"
}
}
},
"arguments"
:
[
{
"name"
:
"master-name"
,
...
...
src/commands/sentinel-set.json
View file @
72935b9d
...
...
@@ -12,6 +12,9 @@
"SENTINEL"
,
"ONLY_SENTINEL"
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"master-name"
,
...
...
src/commands/set.json
View file @
72935b9d
...
...
@@ -55,6 +55,26 @@
}
}
],
"reply_schema"
:
{
"anyOf"
:[
{
"description"
:
"`GET` not given: Operation was aborted (conflict with one of the `XX`/`NX` options)."
,
"type"
:
"null"
},
{
"description"
:
"`GET` not given: The key was set."
,
"const"
:
"OK"
},
{
"description"
:
"`GET` given: The key didn't exist before the `SET`"
,
"type"
:
"null"
},
{
"description"
:
"`GET` given: The previous value of the key"
,
"type"
:
"string"
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/setbit.json
View file @
72935b9d
...
...
@@ -34,6 +34,17 @@
}
}
],
"reply_schema"
:
{
"description"
:
"The original bit value stored at offset."
,
"oneOf"
:
[
{
"const"
:
0
},
{
"const"
:
1
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/setex.json
View file @
72935b9d
...
...
@@ -38,6 +38,9 @@
}
}
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
Prev
1
…
10
11
12
13
14
15
16
17
18
…
23
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment