CLUSTER MYID
Syntax
CLUSTER MYID
- Available since:
- Redis Open Source 3.0.0
- Time complexity:
- O(1)
- ACL categories:
-
@slow, - Compatibility:
- Redis Enterprise and Redis Cloud compatibility
Returns the node's id.
The CLUSTER MYID command returns the unique, auto-generated identifier that is associated with the connected cluster node.
Redis Enterprise and Redis Cloud compatibility
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ❌ Standard |
❌ Standard |
Return information
Bulk string reply: the node ID.