Redis Role 命令

Redis 教程 · 2019-03-08 19:29:42

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 教程 文章: https://codercto.com/courses/l/33.html

查看所有标签

Beginning XSLT 2.0

Beginning XSLT 2.0

Jeni Tennison / Apress / 2005-07-22 / USD 49.99

This is an updated revision of Tennison's "Beginning XSLT", updated for the new revision of the XSLT standard. XSLT is a technology used to transform an XML document with one structure into another ......一起来看看 《Beginning XSLT 2.0》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

MD5 加密
MD5 加密

MD5 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具