Redis Role 命令

更新时间: 2019-07-07 15:54

Redis Role 命令查看主从实例所属的角色,角色有master, slave, sentinel。

语法

redis Role 命令基本语法如下:

redis 127.0.0.1:6379> ROLE 

可用版本

>= 2.8.12

返回值

返回一个数组:第一个参数是 master, slave, sentinel 三个中的一个。

实例

redis 127.0.0.1:6379> ROLE 
1) "master"
2) (integer) 0
3) (empty list or set)
redis> 

查看更多 Redis 服务器命令

The Art of Computer Programming, Volume 4,  Fascicle 3

The Art of Computer Programming, Volume 4, Fascicle 3

Donald E. Knuth / Addison-Wesley Professional / 2005-08-05 / USD 19.99

Finally, after a wait of more than thirty-five years, the first part of Volume 4 is at last ready for publication. Check out the boxed set that brings together Volumes 1 - 4A in one elegant case, and ......一起来看看 《The Art of Computer Programming, Volume 4, Fascicle 3》 这本书的介绍吧!

URL 编码/解码

URL 编码/解码

URL 编码/解码

XML 在线格式化

XML 在线格式化

在线 XML 格式化压缩工具

HEX HSV 转换工具

HEX HSV 转换工具

HEX HSV 互换工具