• Home
  • Commands
  • Clients
  • Documentation
  • Community
  • Download
  • Modules
  • Support
Redis
Redis Commands Clients Documentation Community Download Modules Support

CLUSTER MYID

Available since 3.0.0.

Time complexity: O(1)

Returns the node's id.

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

*Return value

Bulk string reply: The node id.

Related commands

  • CLUSTER ADDSLOTS
  • CLUSTER BUMPEPOCH
  • CLUSTER COUNT-FAILURE-REPORTS
  • CLUSTER COUNTKEYSINSLOT
  • CLUSTER DELSLOTS
  • CLUSTER FAILOVER
  • CLUSTER FLUSHSLOTS
  • CLUSTER FORGET
  • CLUSTER GETKEYSINSLOT
  • CLUSTER INFO
  • CLUSTER KEYSLOT
  • CLUSTER MEET
  • CLUSTER MYID
  • CLUSTER NODES
  • CLUSTER REPLICAS
  • CLUSTER REPLICATE
  • CLUSTER RESET
  • CLUSTER SAVECONFIG
  • CLUSTER SET-CONFIG-EPOCH
  • CLUSTER SETSLOT
  • CLUSTER SLAVES
  • CLUSTER SLOTS
  • READONLY
  • READWRITE

This website is open source software. See all credits.

Sponsored by Redis Labs