CLIENT ID
Since 1.1.0Server
Syntax
CLIENT IDReturns the connection's ID. IDs start at 1 when the server starts and only go up, so an ID is never given to a second connection while the server runs, and a higher ID means a later connection.
The ID is what other commands take to name a connection: CLIENT KILL ID, CLIENT UNBLOCK, REDIRECT in CLIENT TRACKING, and CLIENT LIST ID. It is the id= field of CLIENT LIST.
Reply
The ID, as an integer.
Examples
> CLIENT ID
(integer) 7
> CLIENT LIST ID 7
"id=7 addr=127.0.0.1:45906 ... cmd=client|list user=default ..."