# SCAN over KEYS

> Why should you use SCAN instead of KEYS in production Redis, and what guarantees does SCAN give?

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

Difficulty: Intermediate

## Question

Why should you use SCAN instead of KEYS in production Redis, and what guarantees does SCAN give?

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

## Concepts covered

SCAN Cursor, KEYS Blocking, MATCH and COUNT, Single-threaded Execution, HSCAN SSCAN ZSCAN

Previous: [Real-time Monitoring](https://www.internhack.in/learn/interview/redis-caching/redis-monitor-command) · Next: [DEL vs. UNLINK](https://www.internhack.in/learn/interview/redis-caching/redis-del-vs-unlink) · [All of Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)

## More Redis & Caching questions

- [Geospatial Indexing](https://www.internhack.in/learn/interview/redis-caching/redis-geo-commands)
- [Blocking List Pops](https://www.internhack.in/learn/interview/redis-caching/redis-blocking-lists-brpop)
- [Client Buffers](https://www.internhack.in/learn/interview/redis-caching/redis-client-buffering)
- [Max Clients](https://www.internhack.in/learn/interview/redis-caching/redis-max-clients-limit)
- [Redis Slowlog](https://www.internhack.in/learn/interview/redis-caching/redis-slowlog-debugging)
- [Object Encoding](https://www.internhack.in/learn/interview/redis-caching/redis-object-encoding)

## 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)
