Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
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/xdel.json
View file @
72935b9d
...
...
@@ -44,6 +44,11 @@
"type"
:
"string"
,
"multiple"
:
true
}
]
],
"reply_schema"
:
{
"description"
:
"The number of entries actually deleted"
,
"type"
:
"integer"
,
"minimum"
:
0
}
}
}
src/commands/xgroup-create.json
View file @
72935b9d
...
...
@@ -77,6 +77,9 @@
"type"
:
"integer"
,
"optional"
:
true
}
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
src/commands/xgroup-createconsumer.json
View file @
72935b9d
...
...
@@ -48,6 +48,17 @@
"name"
:
"consumer"
,
"type"
:
"string"
}
]
],
"reply_schema"
:
{
"description"
:
"The number of created consumers (0 or 1)"
,
"oneOf"
:
[
{
"const"
:
1
},
{
"const"
:
0
}
]
}
}
}
src/commands/xgroup-delconsumer.json
View file @
72935b9d
...
...
@@ -47,6 +47,11 @@
"name"
:
"consumer"
,
"type"
:
"string"
}
]
],
"reply_schema"
:
{
"description"
:
"The number of pending messages that were yet associated with such a consumer"
,
"type"
:
"integer"
,
"minimum"
:
0
}
}
}
src/commands/xgroup-destroy.json
View file @
72935b9d
...
...
@@ -43,6 +43,17 @@
"name"
:
"group"
,
"type"
:
"string"
}
]
],
"reply_schema"
:
{
"description"
:
"The number of destroyed consumer groups (0 or 1)"
,
"oneOf"
:
[
{
"const"
:
1
},
{
"const"
:
0
}
]
}
}
}
src/commands/xgroup-help.json
View file @
72935b9d
...
...
@@ -13,6 +13,13 @@
],
"acl_categories"
:
[
"STREAM"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"Helpful text about subcommands."
,
"items"
:
{
"type"
:
"string"
}
}
}
}
src/commands/xgroup-setid.json
View file @
72935b9d
...
...
@@ -71,6 +71,9 @@
"type"
:
"integer"
,
"optional"
:
true
}
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
src/commands/xinfo-consumers.json
View file @
72935b9d
...
...
@@ -46,6 +46,29 @@
"name"
:
"group"
,
"type"
:
"string"
}
]
],
"reply_schema"
:
{
"description"
:
"Array list of consumers"
,
"type"
:
"array"
,
"uniqueItems"
:
true
,
"items"
:
{
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"pending"
:
{
"type"
:
"integer"
},
"idle"
:
{
"type"
:
"integer"
},
"inactive"
:
{
"type"
:
"integer"
}
}
}
}
}
}
src/commands/xinfo-groups.json
View file @
72935b9d
...
...
@@ -39,6 +39,48 @@
}
}
],
"reply_schema"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"consumers"
:
{
"type"
:
"integer"
},
"pending"
:
{
"type"
:
"integer"
},
"last-delivered-id"
:
{
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
"entries-read"
:
{
"oneOf"
:
[
{
"type"
:
"null"
},
{
"type"
:
"integer"
}
]
},
"lag"
:
{
"oneOf"
:
[
{
"type"
:
"null"
},
{
"type"
:
"integer"
}
]
}
}
}
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/xinfo-help.json
View file @
72935b9d
...
...
@@ -13,6 +13,13 @@
],
"acl_categories"
:
[
"STREAM"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"Helpful text about subcommands."
,
"items"
:
{
"type"
:
"string"
}
}
}
}
src/commands/xinfo-stream.json
View file @
72935b9d
...
...
@@ -43,6 +43,291 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"Summary form, in case `FULL` was not given."
,
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"length"
:
{
"description"
:
"the number of entries in the stream (see `XLEN`)"
,
"type"
:
"integer"
},
"radix-tree-keys"
:
{
"description"
:
"the number of keys in the underlying radix data structure"
,
"type"
:
"integer"
},
"radix-tree-nodes"
:
{
"description"
:
"the number of nodes in the underlying radix data structure"
,
"type"
:
"integer"
},
"last-generated-id"
:
{
"description"
:
"the ID of the least-recently entry that was added to the stream"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
"max-deleted-entry-id"
:
{
"description"
:
"the maximal entry ID that was deleted from the stream"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
"recorded-first-entry-id"
:
{
"description"
:
"cached copy of the first entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
"entries-added"
:
{
"description"
:
"the count of all entries added to the stream during its lifetime"
,
"type"
:
"integer"
},
"groups"
:
{
"description"
:
"the number of consumer groups defined for the stream"
,
"type"
:
"integer"
},
"first-entry"
:
{
"description"
:
"the first entry of the stream"
,
"oneOf"
:
[
{
"type"
:
"null"
},
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"data"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
]
}
]
},
"last-entry"
:
{
"description"
:
"the last entry of the stream"
,
"oneOf"
:
[
{
"type"
:
"null"
},
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"data"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
]
}
]
}
}
},
{
"description"
:
"Extended form, in case `FULL` was given."
,
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"length"
:
{
"description"
:
"the number of entries in the stream (see `XLEN`)"
,
"type"
:
"integer"
},
"radix-tree-keys"
:
{
"description"
:
"the number of keys in the underlying radix data structure"
,
"type"
:
"integer"
},
"radix-tree-nodes"
:
{
"description"
:
"the number of nodes in the underlying radix data structure"
,
"type"
:
"integer"
},
"last-generated-id"
:
{
"description"
:
"the ID of the least-recently entry that was added to the stream"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
"max-deleted-entry-id"
:
{
"description"
:
"the maximal entry ID that was deleted from the stream"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
"recorded-first-entry-id"
:
{
"description"
:
"cached copy of the first entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
"entries-added"
:
{
"description"
:
"the count of all entries added to the stream during its lifetime"
,
"type"
:
"integer"
},
"entries"
:
{
"description"
:
"all the entries of the stream"
,
"type"
:
"array"
,
"uniqueItems"
:
true
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"data"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
]
}
},
"groups"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"name"
:
{
"description"
:
"group name"
,
"type"
:
"string"
},
"last-delivered-id"
:
{
"description"
:
"last entry ID that was delivered to a consumer"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
"entries-read"
:
{
"description"
:
"total number of entries ever read by consumers in the group"
,
"oneOf"
:
[
{
"type"
:
"null"
},
{
"type"
:
"integer"
}
]
},
"lag"
:
{
"description"
:
"number of entries left to be consumed from the stream"
,
"oneOf"
:
[
{
"type"
:
"null"
},
{
"type"
:
"integer"
}
]
},
"pel-count"
:
{
"description"
:
"total number of unacknowledged entries"
,
"type"
:
"integer"
},
"pending"
:
{
"description"
:
"data about all of the unacknowledged entries"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
4
,
"maxItems"
:
4
,
"items"
:
[
{
"description"
:
"Entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"Consumer name"
,
"type"
:
"string"
},
{
"description"
:
"Delivery timestamp"
,
"type"
:
"integer"
},
{
"description"
:
"Delivery count"
,
"type"
:
"integer"
}
]
}
},
"consumers"
:
{
"description"
:
"data about all of the consumers of the group"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"active-time"
:
{
"type"
:
"integer"
,
"description"
:
"Last time this consumer was active (successful reading/claiming)."
,
"minimum"
:
0
},
"name"
:
{
"description"
:
"consumer name"
,
"type"
:
"string"
},
"seen-time"
:
{
"description"
:
"timestamp of the last interaction attempt of the consumer"
,
"type"
:
"integer"
},
"pel-count"
:
{
"description"
:
"number of unacknowledged entries that belong to the consumer"
,
"type"
:
"integer"
},
"pending"
:
{
"description"
:
"data about the unacknowledged entries"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
3
,
"maxItems"
:
3
,
"items"
:
[
{
"description"
:
"Entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"Delivery timestamp"
,
"type"
:
"integer"
},
{
"description"
:
"Delivery count"
,
"type"
:
"integer"
}
]
}
}
}
}
}
}
}
}
}
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/xlen.json
View file @
72935b9d
...
...
@@ -38,6 +38,11 @@
"type"
:
"key"
,
"key_spec_index"
:
0
}
]
],
"reply_schema"
:
{
"description"
:
"The number of entries of the stream at key"
,
"type"
:
"integer"
,
"minimum"
:
0
}
}
}
src/commands/xpending.json
View file @
72935b9d
...
...
@@ -41,6 +41,79 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"Extended form, in case `start` was given."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
4
,
"maxItems"
:
4
,
"items"
:
[
{
"description"
:
"Entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"Consumer name"
,
"type"
:
"string"
},
{
"description"
:
"Idle time"
,
"type"
:
"integer"
},
{
"description"
:
"Delivery count"
,
"type"
:
"integer"
}
]
}
},
{
"description"
:
"Summary form, in case `start` was not given."
,
"type"
:
"array"
,
"minItems"
:
4
,
"maxItems"
:
4
,
"items"
:
[
{
"description"
:
"Total number of pending messages"
,
"type"
:
"integer"
},
{
"description"
:
"Minimal pending entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"Maximal pending entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"Consumers with pending messages"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"Consumer name"
,
"type"
:
"string"
},
{
"description"
:
"Number of pending messages"
,
"type"
:
"string"
}
]
}
}
]
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/xrange.json
View file @
72935b9d
...
...
@@ -38,6 +38,30 @@
}
}
],
"reply_schema"
:
{
"description"
:
"Stream entries with IDs matching the specified range."
,
"type"
:
"array"
,
"uniqueItems"
:
true
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"Entry ID"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"Data"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
]
}
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/xread.json
View file @
72935b9d
...
...
@@ -67,6 +67,43 @@
}
]
}
]
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"A map of key-value elements when each element composed of key name and the entries reported for that key"
,
"type"
:
"object"
,
"patternProperties"
:
{
"^.*$"
:
{
"description"
:
"The entries reported for that key"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"entry id"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"array of field-value pairs"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
]
}
}
}
},
{
"description"
:
"If BLOCK option is given, and a timeout occurs, or there is no stream we can serve"
,
"type"
:
"null"
}
]
}
}
}
src/commands/xreadgroup.json
View file @
72935b9d
...
...
@@ -87,6 +87,48 @@
}
]
}
]
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"If BLOCK option is specified and the timeout expired"
,
"type"
:
"null"
},
{
"description"
:
"A map of key-value elements when each element composed of key name and the entries reported for that key"
,
"type"
:
"object"
,
"additionalProperties"
:
{
"description"
:
"The entries reported for that key"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"Stream id"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"oneOf"
:
[
{
"description"
:
"Array of field-value pairs"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
{
"type"
:
"null"
}
]
}
]
}
}
}
]
}
}
}
src/commands/xrevrange.json
View file @
72935b9d
...
...
@@ -58,6 +58,29 @@
"type"
:
"integer"
,
"optional"
:
true
}
]
],
"reply_schema"
:
{
"description"
:
"An array of the entries with IDs matching the specified range"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"Stream id"
,
"type"
:
"string"
,
"pattern"
:
"[0-9]+-[0-9]+"
},
{
"description"
:
"Array of field-value pairs"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
]
}
}
}
}
src/commands/xsetid.json
View file @
72935b9d
...
...
@@ -64,6 +64,9 @@
"optional"
:
true
,
"since"
:
"7.0.0"
}
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
src/commands/xtrim.json
View file @
72935b9d
...
...
@@ -98,6 +98,11 @@
}
]
}
]
],
"reply_schema"
:
{
"description"
:
"The number of entries deleted from the stream."
,
"type"
:
"integer"
,
"minimum"
:
0
}
}
}
src/commands/zadd.json
View file @
72935b9d
...
...
@@ -48,6 +48,26 @@
}
}
],
"reply_schema"
:
{
"anyOf"
:[
{
"description"
:
"Operation was aborted (conflict with one of the `XX`/`NX`/`LT`/`GT` options)."
,
"type"
:
"null"
},
{
"description"
:
"The number of new members (when the `CH` option is not used)"
,
"type"
:
"integer"
},
{
"description"
:
"The number of new or updated members (when the `CH` option is used)"
,
"type"
:
"integer"
},
{
"description"
:
"The updated score of the member (when the `INCR` option is used)"
,
"type"
:
"number"
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
Prev
1
…
13
14
15
16
17
18
19
20
21
…
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