CLUSTER MYSHARDID

Syntax
CLUSTER MYSHARDID
Available since:
Redis Open Source 7.2.0
Time complexity:
O(1)
ACL categories:
@slow,
Compatibility:
Redis Enterprise and Redis Cloud compatibility

Returns the node's shard id.

The CLUSTER MYSHARDID command returns the unique, auto-generated identifier that is associated with the shard to which the connected cluster node belongs.

Redis Enterprise and Redis Cloud compatibility

Redis
Enterprise
Redis
Cloud
Notes
❌ Standard
❌ Active-Active
❌ Standard
❌ Active-Active

Return information

Bulk string reply: the node's shard ID.
RATE THIS PAGE
Back to top ↑