CLUSTER MYID

Usage:
CLUSTER MYID
Complexity:
O(1)
Since:
3.0.0

Returns the node's id.

The CLUSTER MYID command returns the unique, auto-generated identifier that is associated with the connected cluster node.