Redis Server: CLIENT SETNAME
CLIENT SETNAME connection-name
Redis CLIENT SETNAME command is used to assign a name to the current connection. The assigned name is displayed in the output of CLIENT LIST so that it is possible to identify the client that performed a given connection.
This command can remove the entire connection name setting it to the empty string, that is not a valid connection name since it serves to this specific purpose.
Every new connection starts without an assigned name.
Syntax:
CLIENT SETNAME connection-name
Available since
2.6.9.
Return Value
Simple string reply, OK if the connection name was successfully set.
Return Value Type
String
Example: CLIENT SETNAME
redis 127.0.0.1:6379> CLIENT SETNAME "my connection" OK
Previous:
CLIENT PAUSE
Next:
CLUSTER SLOTS
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics