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/memory-stats.json
View file @
72935b9d
...
...
@@ -11,6 +11,111 @@
"NONDETERMINISTIC_OUTPUT"
,
"REQUEST_POLICY:ALL_SHARDS"
,
"RESPONSE_POLICY:SPECIAL"
]
],
"reply_schema"
:
{
"description"
:
"memory usage details"
,
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"peak.allocated"
:
{
"type"
:
"integer"
},
"total.allocated"
:
{
"type"
:
"integer"
},
"startup.allocated"
:
{
"type"
:
"integer"
},
"replication.backlog"
:
{
"type"
:
"integer"
},
"clients.slaves"
:
{
"type"
:
"integer"
},
"clients.normal"
:
{
"type"
:
"integer"
},
"cluster.links"
:
{
"type"
:
"integer"
},
"aof.buffer"
:
{
"type"
:
"integer"
},
"lua.caches"
:
{
"type"
:
"integer"
},
"functions.caches"
:
{
"type"
:
"integer"
},
"overhead.total"
:
{
"type"
:
"integer"
},
"keys.count"
:
{
"type"
:
"integer"
},
"keys.bytes-per-key"
:
{
"type"
:
"integer"
},
"dataset.bytes"
:
{
"type"
:
"integer"
},
"dataset.percentage"
:
{
"type"
:
"number"
},
"peak.percentage"
:
{
"type"
:
"number"
},
"allocator.allocated"
:
{
"type"
:
"integer"
},
"allocator.active"
:
{
"type"
:
"integer"
},
"allocator.resident"
:
{
"type"
:
"integer"
},
"allocator-fragmentation.ratio"
:
{
"type"
:
"number"
},
"allocator-fragmentation.bytes"
:
{
"type"
:
"integer"
},
"allocator-rss.ratio"
:
{
"type"
:
"number"
},
"allocator-rss.bytes"
:
{
"type"
:
"integer"
},
"rss-overhead.ratio"
:
{
"type"
:
"number"
},
"rss-overhead.bytes"
:
{
"type"
:
"integer"
},
"fragmentation"
:
{
"type"
:
"number"
},
"fragmentation.bytes"
:
{
"type"
:
"integer"
}
},
"patternProperties"
:
{
"^db."
:
{
"type"
:
"object"
,
"properties"
:
{
"overhead.hashtable.main"
:
{
"type"
:
"integer"
},
"overhead.hashtable.expires"
:
{
"type"
:
"integer"
},
"overhead.hashtable.slot-to-keys"
:
{
"type"
:
"integer"
}
},
"additionalProperties"
:
false
}
}
}
}
}
src/commands/memory-usage.json
View file @
72935b9d
...
...
@@ -29,6 +29,18 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"Number of bytes that a key and its value require to be stored in RAM."
,
"type"
:
"integer"
},
{
"description"
:
"Key does not exist."
,
"type"
:
"null"
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/mget.json
View file @
72935b9d
...
...
@@ -36,6 +36,21 @@
}
}
],
"reply_schema"
:
{
"description"
:
"List of values at the specified keys."
,
"type"
:
"array"
,
"minItems"
:
1
,
"items"
:
{
"oneOf"
:
[
{
"type"
:
"string"
},
{
"type"
:
"null"
}
]
}
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/migrate.json
View file @
72935b9d
...
...
@@ -77,6 +77,18 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"const"
:
"OK"
,
"description"
:
"Success."
},
{
"const"
:
"NOKEY"
,
"description"
:
"No keys were found in the source instance."
}
]
},
"arguments"
:
[
{
"name"
:
"host"
,
...
...
src/commands/module-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/module-list.json
View file @
72935b9d
...
...
@@ -13,6 +13,35 @@
],
"command_tips"
:
[
"NONDETERMINISTIC_OUTPUT_ORDER"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"Returns information about the modules loaded to the server."
,
"items"
:
{
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
,
"description"
:
"Name of the module."
},
"ver"
:
{
"type"
:
"integer"
,
"description"
:
"Version of the module."
},
"path"
:
{
"type"
:
"string"
,
"description"
:
"Module path."
},
"args"
:
{
"type"
:
"array"
,
"description"
:
"Module arguments."
,
"items"
:
{
"type"
:
"string"
}
}
}
}
}
}
}
src/commands/module-load.json
View file @
72935b9d
...
...
@@ -13,6 +13,9 @@
"NOSCRIPT"
,
"PROTECTED"
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"path"
,
...
...
src/commands/module-loadex.json
View file @
72935b9d
...
...
@@ -13,6 +13,9 @@
"NOSCRIPT"
,
"PROTECTED"
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"path"
,
...
...
src/commands/module-unload.json
View file @
72935b9d
...
...
@@ -13,6 +13,9 @@
"NOSCRIPT"
,
"PROTECTED"
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"name"
,
...
...
src/commands/move.json
View file @
72935b9d
...
...
@@ -44,6 +44,18 @@
"name"
:
"db"
,
"type"
:
"integer"
}
]
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"key was moved"
,
"const"
:
1
},
{
"description"
:
"key wasn't moved"
,
"const"
:
0
}
]
}
}
}
src/commands/mset.json
View file @
72935b9d
...
...
@@ -37,6 +37,9 @@
}
}
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"data"
,
...
...
src/commands/msetnx.json
View file @
72935b9d
...
...
@@ -37,6 +37,18 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"No key was set (at least one key already existed)."
,
"const"
:
0
},
{
"description"
:
"All the keys were set."
,
"const"
:
1
}
]
},
"arguments"
:
[
{
"name"
:
"data"
,
...
...
src/commands/multi.json
View file @
72935b9d
...
...
@@ -15,6 +15,9 @@
],
"acl_categories"
:
[
"TRANSACTION"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
src/commands/object-encoding.json
View file @
72935b9d
...
...
@@ -41,6 +41,18 @@
"type"
:
"key"
,
"key_spec_index"
:
0
}
]
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"key doesn't exist"
,
"type"
:
"null"
},
{
"description"
:
"encoding of the object"
,
"type"
:
"string"
}
]
}
}
}
src/commands/object-freq.json
View file @
72935b9d
...
...
@@ -41,6 +41,10 @@
"type"
:
"key"
,
"key_spec_index"
:
0
}
]
],
"reply_schema"
:
{
"description"
:
"the counter's value"
,
"type"
:
"integer"
}
}
}
src/commands/object-help.json
View file @
72935b9d
...
...
@@ -13,6 +13,13 @@
],
"acl_categories"
:
[
"KEYSPACE"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"Helpful text about subcommands."
,
"items"
:
{
"type"
:
"string"
}
}
}
}
src/commands/object-idletime.json
View file @
72935b9d
...
...
@@ -41,6 +41,10 @@
"type"
:
"key"
,
"key_spec_index"
:
0
}
]
],
"reply_schema"
:
{
"description"
:
"the idle time in seconds"
,
"type"
:
"integer"
}
}
}
src/commands/object-refcount.json
View file @
72935b9d
...
...
@@ -41,6 +41,10 @@
"type"
:
"key"
,
"key_spec_index"
:
0
}
]
],
"reply_schema"
:
{
"description"
:
"the number of references"
,
"type"
:
"integer"
}
}
}
src/commands/persist.json
View file @
72935b9d
...
...
@@ -33,6 +33,18 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"const"
:
0
,
"description"
:
"Key does not exist or does not have an associated timeout."
},
{
"const"
:
1
,
"description"
:
"The timeout has been removed."
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/pexpire.json
View file @
72935b9d
...
...
@@ -39,6 +39,18 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"const"
:
0
,
"description"
:
"The timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments."
},
{
"const"
:
1
,
"description"
:
"The timeout was set."
}
]
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
Prev
1
…
7
8
9
10
11
12
13
14
15
…
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