The CLIENT GETNAME returns the name of the current connection as set by CLIENT SETNAME. Since every new connection starts without an associated name, if no name was assigned a null bulk reply is returned.
CLIENT GETNAME
Returns the name of the connection.
Replies
RESP2
One of the following:
- Bulk string reply: the connection name of the current connection.
- Nil reply: the connection name was not set.
RESP3
One of the following:
- Bulk string reply: the connection name of the current connection.
- Null reply: the connection name was not set.