Latest web development tutorials

Redis Debug Object command

Redis server

Redis Debug Object command is a debugging command, it should not be used by the client.

grammar

redis Debug Object basic command syntax is as follows:

redis 127.0.0.1:6379> DEBUG OBJECT key

Available versions

> = 1.0.0

return value

When the key exists, return information. When the key does not exist, an error is returned.

Examples

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