mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
COMMAND COUNT subcommand added.
This commit is contained in:
parent
a92ae77740
commit
885b6fc577
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user