PFDEBUG TODENSE

Since 1.1.0HyperLogLog

Syntax

PFDEBUG TODENSE key

Converts a sparse HyperLogLog, one Redis wrote, to the dense encoding. KiviDB writes only dense ones.

Reply

  • 1 if it was sparse and is now dense, 0 if it was dense already.

Examples

> PFADD h a b c d
(integer) 1
> PFDEBUG TODENSE h
(integer) 0

Before 1.2, the reply was OK.