The command just returns the ID of the current connection. Every connection ID has certain guarantees:
This command is especially useful together with CLIENT UNBLOCK which was introduced also in Redis 5 together with CLIENT ID. Check the CLIENT UNBLOCK command page for a pattern involving the two commands.
ERR Unknown or disabled command 'CLIENT'
The id of the client.
© 2009–2020 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.