w3resource

Redis Server: CLUSTER SLOTS

Redis CLUSTER SLOTS Command

Redis CLUSTER SLOTS returns array reply of current cluster state.

Syntax:

CLUSTER SLOTS 

Available since

1.0.0.

Return Value

Array reply: nested list of slot ranges with IP/Port mappings.

Return Value Type

Integer

Example: Redis CLUSTER SLOTS

127.0.0.1:6379> cluster slots
1) 1) (integer) 3548
   2) (integer) 3548
   3) 1) ""
      2) (integer) 6379
      3) "8bcd89fd201bf503444c5df4931f01b2264cc0bf"
127.0.0.1:6379>

Previous: CLIENT SETNAME
Next: COMMAND



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/redis/redis-server-cluster-slots.php