object
OBJECT
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.