Commands.app

SCAN

Keys

Incrementally iterate keys

Examples
Common usage examples

Start scanning from cursor 0

SCAN 0

Scan keys matching pattern

SCAN 0 MATCH user:*

Scan with count hint

SCAN 0 COUNT 100
Notes
  • Production-safe alternative to KEYS
  • Use returned cursor for next iteration
Related Commands
You might also find these useful