CLIENT GETNAME
Syntax
CLIENT GETNAME
- Available since:
- Redis Open Source 2.6.9
- Time complexity:
- O(1)
- ACL categories:
-
@slow,@connection, - Compatibility:
- Redis Software and Redis Cloud compatibility
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.
Redis Software and Redis Cloud compatibility
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard |
✅ Standard |
Return information
One of the following:
- Bulk string reply: the connection name of the current connection.
- Nil reply: the connection name was not set.