Difficulty: Intermediate
Why should you use SCAN instead of KEYS in production?
`KEYS` can block the server for a long time if there are millions of keys. `SCAN` is a non-blocking cursor-based iterator.
Performance, Iteration
JavaScript is required for the interactive version of this page, including the code playground and progress tracking. Browse all InternHack tutorials.