Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
63feb93a
Commit
63feb93a
authored
Jun 27, 2014
by
antirez
Browse files
COMMAND COUNT subcommand added.
parent
0a6649a7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.c
View file @
63feb93a
...
...
@@ -2330,8 +2330,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