Back to Redis

CLUSTER MYSHARDID

content/commands/cluster-myshardid.md

latest998 B
Original Source

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 Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Not supported">❌ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | <span title="Not supported">❌ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | |

Return information

{{< multitabs id="cluster-myshardid-return-info" tab1="RESP2" tab2="RESP3" >}}

Bulk string reply: the node's shard ID.

-tab-sep-

Bulk string reply: the node's shard ID.

{{< /multitabs >}}