Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

PFSELFTEST

Last updated
PFSELFTEST
Group
HyperLogLog
Arity
1 (exactly, counting the command name)
Flags
admin
HotKV Cloud
All plans
On-Premise
no license needed

PFSELFTEST checks that the server’s HyperLogLog implementation works: that the sparse and dense representations agree and that estimates stay within the expected error. It does not touch any keys. It is an administrative command, useful after an upgrade or on unusual hardware.

Case RESP2 RESP3
All checks passed Simple string OK Simple string OK
A check failed Error starting with ERR TESTFAILED and a description Error
127.0.0.1:6379> PFSELFTEST
OK

Same as Redis 7 and Valkey 8.

PFDEBUG, PFADD