Redis 8 · Keys and strings

Find keys by pattern

Iterate over keys without blocking the server.

SCAN 0 MATCH user:* COUNT 100

Caution: Avoid KEYS * on a production server. It blocks Redis while it scans every key.

Official Redis 8 documentation

More keys and strings commands

All keys and strings commands · Redis 8 cheatsheet

Was this page helpful?