Introduction
SCAN helps you look through all keys in Redis without freezing the database. It is safer than getting all keys at once.
When you want to find keys matching a pattern without stopping Redis.
When your database has many keys and you want to avoid slow commands.
When you want to process keys in small parts instead of all at once.
When you want to build a tool that checks or cleans keys safely.
When you want to avoid blocking other users while searching keys.