# HyperLogLog

> What is HyperLogLog in Redis, how accurate is it, and when would you use it instead of a Set?

Canonical: https://www.internhack.in/learn/interview/redis-caching/redis-hyperloglog
Last updated: 2026-11-28

Difficulty: Advanced

## Question

What is HyperLogLog in Redis, how accurate is it, and when would you use it instead of a Set?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

HyperLogLog, Cardinality Estimation, PFADD and PFCOUNT, PFMERGE, Standard Error

Previous: [Redis Bitmaps](https://www.internhack.in/learn/interview/redis-caching/redis-bitmaps-use-case) · Next: [Setting Expiry](https://www.internhack.in/learn/interview/redis-caching/redis-ttl-command) · [All of Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)

## More Redis & Caching questions

- [Redis Info](https://www.internhack.in/learn/interview/redis-caching/redis-info-command)
- [Runtime Configuration](https://www.internhack.in/learn/interview/redis-caching/redis-config-get-set)
- [Real-time Monitoring](https://www.internhack.in/learn/interview/redis-caching/redis-monitor-command)
- [SCAN over KEYS](https://www.internhack.in/learn/interview/redis-caching/redis-scan-vs-keys)
- [DEL vs. UNLINK](https://www.internhack.in/learn/interview/redis-caching/redis-del-vs-unlink)
- [Geospatial Indexing](https://www.internhack.in/learn/interview/redis-caching/redis-geo-commands)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)
