PFDEBUG

Since 1.1.0HyperLogLog

Syntax

PFDEBUG
  • Flags: admin, readonly
  • ACL categories: @admin, @dangerous, @hyperloglog, @read, @slow
  • Arity: 3

Inspects or resets a HyperLogLog. See its subcommands.

Subcommands

  • PFDEBUG DECODE: Returns a summary of the HyperLogLog: its encoding, how many of its 16,384 registers are not zero, the largest register, and its estimate.
  • PFDEBUG ENCODING: Returns the HyperLogLog's encoding: always dense in KiviDB, which does not use Redis's sparse encoding.
  • PFDEBUG GETREG: Returns all 16,384 registers of the HyperLogLog, each from 0 to 63.
  • PFDEBUG RESET: Sets every register of the HyperLogLog to zero, so that it counts 0; the key is kept.
  • PFDEBUG TODENSE: Converts a HyperLogLog to the dense encoding; in KiviDB it already is, and the reply is OK.