Skip to main content

CLIENT GETNAME

Syntax

CLIENT GETNAME 

Time complexity: O(1)

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.

Return

Bulk string reply: The connection name, or a null bulk reply if no name is set.