English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Redis Debug Object Command

Redis Server

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

Syntax

Basic Syntax of Redis Debug Object Command

redis 127.0.0.1:6379> DEBUG OBJECT key

Available Version

>= 1.0.0

Return Value

Returns information when the key exists. Returns an error when the key does not exist.

Online 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