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/hmget.json
View file @
72935b9d
...
...
@@ -33,6 +33,21 @@
}
}
],
"reply_schema"
:
{
"description"
:
"List of values associated with the given fields, in the same order as they are requested."
,
"type"
:
"array"
,
"minItems"
:
1
,
"items"
:
{
"oneOf"
:
[
{
"type"
:
"string"
},
{
"type"
:
"null"
}
]
}
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/hmset.json
View file @
72935b9d
...
...
@@ -39,6 +39,9 @@
}
}
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/hrandfield.json
View file @
72935b9d
...
...
@@ -35,6 +35,44 @@
}
}
],
"reply_schema"
:
{
"anyOf"
:
[
{
"description"
:
"Key doesn't exist"
,
"type"
:
"null"
},
{
"description"
:
"A single random field. Returned in case `COUNT` was not used."
,
"type"
:
"string"
},
{
"description"
:
"A list of fields. Returned in case `COUNT` was used."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
{
"description"
:
"Fields and their values. Returned in case `COUNT` and `WITHVALUES` were used. In RESP2 this is returned as a flat array."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"Field"
,
"type"
:
"string"
},
{
"description"
:
"Value"
,
"type"
:
"string"
}
]
}
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/hscan.json
View file @
72935b9d
...
...
@@ -57,6 +57,25 @@
"type"
:
"integer"
,
"optional"
:
true
}
]
],
"reply_schema"
:
{
"description"
:
"cursor and scan response in array form"
,
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"cursor"
,
"type"
:
"string"
},
{
"description"
:
"list of key/value pairs from the hash where each even element is the key, and each odd element is the value"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
]
}
}
}
src/commands/hset.json
View file @
72935b9d
...
...
@@ -40,6 +40,9 @@
}
}
],
"reply_schema"
:
{
"type"
:
"integer"
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/hsetnx.json
View file @
72935b9d
...
...
@@ -34,6 +34,18 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"The field is a new field in the hash and value was set."
,
"const"
:
0
},
{
"description"
:
"The field already exists in the hash and no operation was performed."
,
"const"
:
1
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/hstrlen.json
View file @
72935b9d
...
...
@@ -32,6 +32,11 @@
}
}
],
"reply_schema"
:
{
"type"
:
"integer"
,
"description"
:
"String length of the value associated with the field, or zero when the field is not present in the hash or key does not exist at all."
,
"minimum"
:
0
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/hvals.json
View file @
72935b9d
...
...
@@ -35,6 +35,13 @@
}
}
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"List of values in the hash, or an empty list when the key does not exist."
,
"items"
:
{
"type"
:
"string"
}
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/incr.json
View file @
72935b9d
...
...
@@ -41,6 +41,10 @@
"type"
:
"key"
,
"key_spec_index"
:
0
}
]
],
"reply_schema"
:
{
"description"
:
"The value of key after the increment"
,
"type"
:
"integer"
}
}
}
src/commands/incrby.json
View file @
72935b9d
...
...
@@ -35,6 +35,10 @@
}
}
],
"reply_schema"
:
{
"type"
:
"integer"
,
"description"
:
"The value of the key after incrementing it."
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/incrbyfloat.json
View file @
72935b9d
...
...
@@ -35,6 +35,10 @@
}
}
],
"reply_schema"
:
{
"type"
:
"string"
,
"description"
:
"The value of the key after incrementing it."
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/info.json
View file @
72935b9d
...
...
@@ -25,6 +25,9 @@
"REQUEST_POLICY:ALL_SHARDS"
,
"RESPONSE_POLICY:SPECIAL"
],
"reply_schema"
:
{
"type"
:
"string"
},
"arguments"
:
[
{
"name"
:
"section"
,
...
...
src/commands/keys.json
View file @
72935b9d
...
...
@@ -22,6 +22,13 @@
"name"
:
"pattern"
,
"type"
:
"pattern"
}
]
],
"reply_schema"
:
{
"description"
:
"list of keys matching pattern"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
}
}
src/commands/lastsave.json
View file @
72935b9d
...
...
@@ -17,6 +17,10 @@
"acl_categories"
:
[
"ADMIN"
,
"DANGEROUS"
]
],
"reply_schema"
:
{
"type"
:
"integer"
,
"description"
:
"UNIX TIME of the last DB save executed with success."
}
}
}
src/commands/latency-doctor.json
View file @
72935b9d
...
...
@@ -17,6 +17,10 @@
"NONDETERMINISTIC_OUTPUT"
,
"REQUEST_POLICY:ALL_NODES"
,
"RESPONSE_POLICY:SPECIAL"
]
],
"reply_schema"
:
{
"type"
:
"string"
,
"description"
:
"A human readable latency analysis report."
}
}
}
src/commands/latency-graph.json
View file @
72935b9d
...
...
@@ -23,6 +23,10 @@
"name"
:
"event"
,
"type"
:
"string"
}
]
],
"reply_schema"
:
{
"type"
:
"string"
,
"description"
:
"Latency graph"
}
}
}
src/commands/latency-help.json
View file @
72935b9d
...
...
@@ -10,6 +10,13 @@
"command_flags"
:
[
"LOADING"
,
"STALE"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"Helpful text about subcommands."
,
"items"
:
{
"type"
:
"string"
}
}
}
}
src/commands/latency-histogram.json
View file @
72935b9d
...
...
@@ -18,6 +18,30 @@
"REQUEST_POLICY:ALL_NODES"
,
"RESPONSE_POLICY:SPECIAL"
],
"reply_schema"
:
{
"type"
:
"object"
,
"description"
:
"A map where each key is a command name, and each value is a map with the total calls, and an inner map of the histogram time buckets."
,
"patternProperties"
:
{
"^.*$"
:
{
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"calls"
:
{
"description"
:
"The total calls for the command."
,
"type"
:
"integer"
,
"minimum"
:
0
},
"histogram_usec"
:
{
"description"
:
"Histogram map, bucket id to latency"
,
"type"
:
"object"
,
"additionalProperties"
:
{
"type"
:
"integer"
}
}
}
}
}
},
"arguments"
:
[
{
"name"
:
"COMMAND"
,
...
...
src/commands/latency-history.json
View file @
72935b9d
...
...
@@ -18,6 +18,27 @@
"REQUEST_POLICY:ALL_NODES"
,
"RESPONSE_POLICY:SPECIAL"
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"An array where each element is a two elements array representing the timestamp and the latency of the event."
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"timestamp of the event"
,
"type"
:
"integer"
,
"minimum"
:
0
},
{
"description"
:
"latency of the event"
,
"type"
:
"integer"
,
"minimum"
:
0
}
]
}
},
"arguments"
:
[
{
"name"
:
"event"
,
...
...
src/commands/latency-latest.json
View file @
72935b9d
...
...
@@ -17,6 +17,33 @@
"NONDETERMINISTIC_OUTPUT"
,
"REQUEST_POLICY:ALL_NODES"
,
"RESPONSE_POLICY:SPECIAL"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"An array where each element is a four elements array representing the event's name, timestamp, latest and all-time latency measurements."
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
4
,
"maxItems"
:
4
,
"items"
:
[
{
"type"
:
"string"
,
"description"
:
"Event name."
},
{
"type"
:
"integer"
,
"description"
:
"Timestamp."
},
{
"type"
:
"integer"
,
"description"
:
"Latest latency in milliseconds."
},
{
"type"
:
"integer"
,
"description"
:
"Max latency in milliseconds."
}
]
}
}
}
}
Prev
1
…
5
6
7
8
9
10
11
12
13
…
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