Add MEMORY DOCTOR to MEMORY HELP.

This commit is contained in:
antirez 2017-07-28 17:47:54 +02:00
parent fa6bd1b230
commit 0c0b77d149

View File

@ -1163,7 +1163,9 @@ void memoryCommand(client *c) {
/* Nothing to do for other allocators. */
#endif
} else if (!strcasecmp(c->argv[1]->ptr,"help") && c->argc == 2) {
addReplyMultiBulkLen(c,4);
addReplyMultiBulkLen(c,5);
addReplyBulkCString(c,
"MEMORY DOCTOR - Outputs memory problems report");
addReplyBulkCString(c,
"MEMORY USAGE <key> [SAMPLES <count>] - Estimate memory usage of key");
addReplyBulkCString(c,