Redis Role command
Redis Role command to view the role instance, and there is the role of master, slave, sentinel.
grammar
redis Role basic command syntax is as follows:
redis 127.0.0.1:6379> ROLE
Available versions
> = 2.8.12
return value
It returns an array: The first parameter is the master, slave, sentinel three in one.
Examples
redis 127.0.0.1:6379> ROLE 1) "master" 2) (integer) 0 3) (empty list or set) redis>