OBJECT

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

Get information about a key

Usage is OBJECT encoding key [type].
📍 type is one of string/list/set/zset/hash/stream.
      type was added from ent811. Please use it.
The OBJECT command has 4 subcommands.

  • encoding: Shows the internal data type.
  • idletime: Shows how long the key has been unused.
  • refcount: Shows the value reference count.
  • time: Shows when the key was created or when the value was last modified.
    This option is available from Enterprise 7.2.0.

encoding

idletime

refcount

time



Syntax

OBJECT subcommand key [type]

  • Available since version 2.2.3.
  • Time complexity is O(1)
  • ent811 type added.
Related commands TYPE
Clients for Java Jedis, Lettuce, Redisson
Clients for C Hiredis

<< TYPE OBJECT OBJECT encoding >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.