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
885b6fc5
Commit
885b6fc5
authored
Jun 27, 2014
by
antirez
Browse files
COMMAND COUNT subcommand added.
parent
a92ae777
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.c
View file @
885b6fc5
...
...
@@ -2466,8 +2466,10 @@ void commandCommand(redisClient *c) {
for
(
i
=
2
;
i
<
c
->
argc
;
i
++
)
{
addReplyCommand
(
c
,
dictFetchValue
(
server
.
commands
,
c
->
argv
[
i
]
->
ptr
));
}
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"count"
)
&&
c
->
argc
==
2
)
{
addReplyLongLong
(
c
,
dictSize
(
server
.
commands
));
}
else
{
addReplyError
(
c
,
"Unknown subcommand."
);
addReplyError
(
c
,
"Unknown subcommand
or wrong number of arguments
."
);
return
;
}
}
...
...
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