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 服务器命令

The Seasoned Schemer

The Seasoned Schemer

Daniel P. Friedman、Matthias Felleisen / The MIT Press / 1995-12-21 / USD 38.00

drawings by Duane Bibbyforeword and afterword by Guy L. Steele Jr.The notion that "thinking about computing is one of the most exciting things the human mind can do" sets both The Little Schemer (form......一起来看看 《The Seasoned Schemer》 这本书的介绍吧!

Base64 编码/解码

Base64 编码/解码

Base64 编码/解码

XML 在线格式化

XML 在线格式化

在线 XML 格式化压缩工具

RGB CMYK 转换工具

RGB CMYK 转换工具

RGB CMYK 互转工具