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
d3f43db2
Commit
d3f43db2
authored
Jun 27, 2014
by
antirez
Browse files
COMMAND COUNT subcommand added.
parent
b2051198
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
d3f43db2
...
...
@@ -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