PFSELFTEST
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.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| All checks passed | Simple string OK |
Simple string OK |
| A check failed | Error starting with ERR TESTFAILED and a description |
Error |
Examples
Section titled “Examples”127.0.0.1:6379> PFSELFTESTOKCompatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.