Redis Debug Object Command

Redis Server

Redis Debug Object command is a debugging command and should not be used by clients.

Syntax

The basic syntax of the redis Debug Object command is as follows:

redis 127.0.0.1:6379> DEBUG OBJECT key

Available Versions

>= 1.0.0

Return Value

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

Example

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

Other Extensions