DEBUG OBJECT key

本页内容
上一节: Server_dbsize 下一节: Server_debug_segfault

Redis Debug Object 命令

Redis 服务器

Redis Debug Object 命令是一个调试命令,它不应被客户端所使用。

语法

redis Debug Object 命令基本语法如下:


示例

redis 127.0.0.1:6379> DEBUG OBJECT key

可用版本

>= 1.0.0

返回值

当 key 存在时,返回有关信息。 当 key 不存在时,返回一个错误。

==


示例

redis 127.0.0.1:6379> DEBUG OBJECT my_pc
Value at:0xb6838d20 refcount:1 encoding:raw serializedlength:9 lru:283790 lru_seconds_idle:150

redis 127.0.0.1:6379> DEBUG OBJECT your_mac
(error) ERR no such key

Redis 服务器

上一节: Server_dbsize 下一节: Server_debug_segfault
此页面最后编辑于2022年8月17日 (星期三) 23:14。