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
a7b46e0e
Commit
a7b46e0e
authored
Dec 15, 2017
by
Itamar Haber
Committed by
antirez
Nov 07, 2018
Browse files
Uppercases subcommands in MEMORY HELP
parent
80e129d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
a7b46e0e
...
@@ -1290,11 +1290,11 @@ void memoryCommand(client *c) {
...
@@ -1290,11 +1290,11 @@ void memoryCommand(client *c) {
if
(
c
->
argc
==
2
&&
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"help"
))
{
if
(
c
->
argc
==
2
&&
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"help"
))
{
const
char
*
help
[]
=
{
const
char
*
help
[]
=
{
"
doctor
- Return memory problems reports."
,
"
DOCTOR
- Return memory problems reports."
,
"
malloc-stats
-- Return internal statistics report from the memory allocator."
,
"
MALLOC-STATS
-- Return internal statistics report from the memory allocator."
,
"
purge
-- Attempt to purge dirty pages for reclamation by the allocator."
,
"
PURGE
-- Attempt to purge dirty pages for reclamation by the allocator."
,
"
stats
-- Return information about the memory usage of the server."
,
"
STATS
-- Return information about the memory usage of the server."
,
"
usage
<key> [
samples
<count>] -- Return memory in bytes used by <key> and its value. Nested values are sampled up to <count> times (default: 5)."
,
"
USAGE
<key> [
SAMPLES
<count>] -- Return memory in bytes used by <key> and its value. Nested values are sampled up to <count> times (default: 5)."
,
NULL
NULL
};
};
addReplyHelp
(
c
,
help
);
addReplyHelp
(
c
,
help
);
...
...
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