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/latency-reset.json
View file @
72935b9d
...
...
@@ -17,6 +17,10 @@
"REQUEST_POLICY:ALL_NODES"
,
"RESPONSE_POLICY:ALL_SUCCEEDED"
],
"reply_schema"
:
{
"type"
:
"integer"
,
"description"
:
"Number of event time series that were reset."
},
"arguments"
:
[
{
"name"
:
"event"
,
...
...
src/commands/lcs.json
View file @
72935b9d
...
...
@@ -32,6 +32,61 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"type"
:
"string"
,
"description"
:
"The longest common subsequence."
},
{
"type"
:
"integer"
,
"description"
:
"The length of the longest common subsequence when 'LEN' is given."
},
{
"type"
:
"object"
,
"description"
:
"Array with the LCS length and all the ranges in both the strings when 'IDX' is given. In RESP2 this is returned as a flat array"
,
"additionalProperties"
:
false
,
"properties"
:
{
"matches"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
3
,
"items"
:
[
{
"type"
:
"array"
,
"description"
:
"Matched range in the first string."
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
{
"type"
:
"integer"
}
},
{
"type"
:
"array"
,
"description"
:
"Matched range in the second string."
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
{
"type"
:
"integer"
}
}
],
"additionalItems"
:
{
"type"
:
"integer"
,
"description"
:
"The length of the match when 'WITHMATCHLEN' is given."
}
}
},
"len"
:
{
"type"
:
"integer"
,
"description"
:
"Length of the longest common subsequence."
}
}
}
]
},
"arguments"
:
[
{
"name"
:
"key1"
,
...
...
src/commands/lindex.json
View file @
72935b9d
...
...
@@ -32,6 +32,18 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"type"
:
"null"
,
"description"
:
"Index is out of range"
},
{
"description"
:
"The requested element"
,
"type"
:
"string"
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/linsert.json
View file @
72935b9d
...
...
@@ -33,6 +33,23 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"List length after a successful insert operation."
,
"type"
:
"integer"
,
"minimum"
:
1
},
{
"description"
:
"in case key doesn't exist."
,
"const"
:
0
},
{
"description"
:
"when the pivot wasn't found."
,
"const"
:
-1
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/llen.json
View file @
72935b9d
...
...
@@ -32,6 +32,11 @@
}
}
],
"reply_schema"
:
{
"description"
:
"List length."
,
"type"
:
"integer"
,
"minimum"
:
0
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/lmove.json
View file @
72935b9d
...
...
@@ -52,6 +52,10 @@
}
}
],
"reply_schema"
:
{
"description"
:
"The element being popped and pushed."
,
"type"
:
"string"
},
"arguments"
:
[
{
"name"
:
"source"
,
...
...
src/commands/lmpop.json
View file @
72935b9d
...
...
@@ -34,6 +34,34 @@
}
}
],
"reply_schema"
:
{
"anyOf"
:
[
{
"description"
:
"If no element could be popped."
,
"type"
:
"null"
},
{
"description"
:
"List key from which elements were popped."
,
"type"
:
"array"
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
{
"description"
:
"Name of the key from which elements were popped."
,
"type"
:
"string"
},
{
"description"
:
"Array of popped elements."
,
"type"
:
"array"
,
"minItems"
:
1
,
"items"
:
{
"type"
:
"string"
}
}
]
}
]
},
"arguments"
:
[
{
"name"
:
"numkeys"
,
...
...
src/commands/lolwut.json
View file @
72935b9d
...
...
@@ -9,6 +9,10 @@
"READONLY"
,
"FAST"
],
"reply_schema"
:
{
"type"
:
"string"
,
"description"
:
"String containing the generative computer art, and a text with the Redis version."
},
"arguments"
:
[
{
"token"
:
"VERSION"
,
...
...
src/commands/lpop.json
View file @
72935b9d
...
...
@@ -40,6 +40,26 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"Key does not exist."
,
"type"
:
"null"
},
{
"description"
:
"In case `count` argument was not given, the value of the first element."
,
"type"
:
"string"
},
{
"description"
:
"In case `count` argument was given, a list of popped elements"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/lpos.json
View file @
72935b9d
...
...
@@ -32,6 +32,26 @@
}
}
],
"reply_schema"
:
{
"anyOf"
:
[
{
"description"
:
"In case there is no matching element"
,
"type"
:
"null"
},
{
"description"
:
"An integer representing the matching element"
,
"type"
:
"integer"
},
{
"description"
:
"If the COUNT option is given, an array of integers representing the matching elements (empty if there are no matches)"
,
"type"
:
"array"
,
"uniqueItems"
:
true
,
"items"
:
{
"type"
:
"integer"
}
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/lpush.json
View file @
72935b9d
...
...
@@ -40,6 +40,10 @@
}
}
],
"reply_schema"
:
{
"description"
:
"Length of the list after the push operations."
,
"type"
:
"integer"
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/lpushx.json
View file @
72935b9d
...
...
@@ -40,6 +40,11 @@
}
}
],
"reply_schema"
:
{
"type"
:
"integer"
,
"description"
:
"the length of the list after the push operation"
,
"minimum"
:
0
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/lrange.json
View file @
72935b9d
...
...
@@ -46,6 +46,13 @@
"name"
:
"stop"
,
"type"
:
"integer"
}
]
],
"reply_schema"
:
{
"description"
:
"List of elements in the specified range"
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
}
}
src/commands/lrem.json
View file @
72935b9d
...
...
@@ -32,6 +32,11 @@
}
}
],
"reply_schema"
:
{
"description"
:
"The number of removed elements."
,
"type"
:
"integer"
,
"minimum"
:
0
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/lset.json
View file @
72935b9d
...
...
@@ -33,6 +33,9 @@
}
}
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/ltrim.json
View file @
72935b9d
...
...
@@ -32,6 +32,9 @@
}
}
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/memory-doctor.json
View file @
72935b9d
...
...
@@ -11,6 +11,10 @@
"NONDETERMINISTIC_OUTPUT"
,
"REQUEST_POLICY:ALL_SHARDS"
,
"RESPONSE_POLICY:SPECIAL"
]
],
"reply_schema"
:
{
"description"
:
"memory problems report"
,
"type"
:
"string"
}
}
}
src/commands/memory-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/memory-malloc-stats.json
View file @
72935b9d
...
...
@@ -11,6 +11,10 @@
"NONDETERMINISTIC_OUTPUT"
,
"REQUEST_POLICY:ALL_SHARDS"
,
"RESPONSE_POLICY:SPECIAL"
]
],
"reply_schema"
:
{
"type"
:
"string"
,
"description"
:
"The memory allocator's internal statistics report."
}
}
}
src/commands/memory-purge.json
View file @
72935b9d
...
...
@@ -10,6 +10,9 @@
"command_tips"
:
[
"REQUEST_POLICY:ALL_SHARDS"
,
"RESPONSE_POLICY:ALL_SUCCEEDED"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
Prev
1
…
6
7
8
9
10
11
12
13
14
…
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