From bccbc5509a1fe3ebee48904bd2418d9e665d2a5a Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Mon, 7 Dec 2020 14:24:05 +0200 Subject: [PATCH] Add CLIENT INFO and CLIENT LIST [id]. (#8113) * Add CLIENT INFO subcommand. The output is identical to CLIENT LIST but provides a single line for the current client only. * Add CLIENT LIST ID [id...]. Co-authored-by: Itamar Haber --- src/networking.c | 31 +++++++++++++++++++++++++++++-- src/redis-cli.c | 3 ++- tests/unit/introspection.tcl | 10 ++++++++++ 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/src/networking.c b/src/networking.c index 82b6428ac..f1665825c 100644 --- a/src/networking.c +++ b/src/networking.c @@ -2331,6 +2331,7 @@ void clientCommand(client *c) { if (c->argc == 2 && !strcasecmp(c->argv[1]->ptr,"help")) { const char *help[] = { "ID -- Return the ID of the current connection.", +"INFO -- Return information about the current client connection.", "GETNAME -- Return the name of the current connection.", "KILL -- Kill connection made from .", "KILL