OBJECT

Since 1.1.0Keys

Syntax

OBJECT
  • Flags: readonly
  • ACL categories: @generic, @keyspace, @read, @slow
  • Arity: -2

Inspects how a key's value is stored and used. See its subcommands.

Subcommands

  • OBJECT ENCODING: Returns the name of the encoding Redis would use for the value at key, from the value's size and the *-max-listpack-* and set-max-intset-entries settings.
  • OBJECT FREQ: Returns the key's use count: a number that grows with how often the key is used, logarithmically, and falls with time, as Redis's LFU counter does.
  • OBJECT HELP: Lists the OBJECT subcommands and what each does.
  • OBJECT IDLETIME: Returns how many seconds ago key was last read or written.
  • OBJECT REFCOUNT: Returns 1 for a key that exists: in KiviDB a value is not shared between keys.