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
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework