Redis Config Set 命令

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

Redis Config Set 命令可以动态地调整 Redis 服务器的配置(configuration)而无须重启。

你可以使用它修改配置参数,或者改变 Redis 的持久化(Persistence)方式。

语法

redis Config Set 命令基本语法如下:

redis 127.0.0.1:6379> CONFIG Set parameter value 

可用版本

>= 2.0.0

返回值

当设置成功时返回 OK ,否则返回一个错误。

实例

redis 127.0.0.1:6379> CONFIG GET slowlog-max-len
1) "slowlog-max-len"
2) "1024"

redis 127.0.0.1:6379> CONFIG SET slowlog-max-len 10086
OK

redis 127.0.0.1:6379> CONFIG GET slowlog-max-len
1) "slowlog-max-len"
2) "10086"

查看更多 Redis 服务器命令

Non-Obvious

Non-Obvious

Rohit Bhargava / Ideapress Publishing / 2015-3-29 / USD 24.95

What do Disney, Bollywood, and The Batkid teach us about how to create celebrity experiences for our audiences? How can a vending-machine inspire world peace? Can being imperfect make your business mo......一起来看看 《Non-Obvious》 这本书的介绍吧!

RGB转16进制工具

RGB转16进制工具

RGB HEX 互转工具

MD5 加密

MD5 加密

MD5 加密工具

RGB CMYK 转换工具

RGB CMYK 转换工具

RGB CMYK 互转工具