PFDEBUG
Since 1.1.0HyperLogLogChanged in 1.2.0
Syntax
PFDEBUGHistory
- 1.2.0: flags: added write; removed readonly; acl categories: added write; removed read
Inspects or converts a HyperLogLog. See its subcommands.
Since 1.2 it is flagged as a write, since TODENSE and RESET change the value; they reach replicas and the append-only file like any write. GETREG only reads, unlike Redis's, where it converts a sparse value to dense first.
Subcommands
- PFDEBUG DECODE: Returns the runs of a sparse HyperLogLog, as Redis does: Z:n for n zero registers, v:value,count for count registers holding value.
- PFDEBUG ENCODING: Returns how the HyperLogLog at key is stored: dense, the full 16,384 registers, or sparse, Redis's compact form for one with few elements.
- PFDEBUG GETREG: Returns all 16,384 registers of the HyperLogLog at key, in order, each a number from 0 to 63.
- PFDEBUG RESET: Sets every register of the HyperLogLog at key to zero, so that PFCOUNT gives 0 and it counts again from nothing.
- PFDEBUG TODENSE: Converts a sparse HyperLogLog, one Redis wrote, to the dense encoding.