Commands.app

KEYS

Keys

Find keys matching pattern

Examples
Common usage examples

List all keys (use cautiously)

KEYS *

List keys starting with user:

KEYS user:*

List keys containing session

KEYS *session*
Notes
  • AVOID in production - blocks server
  • Use SCAN for production workloads
Related Commands
You might also find these useful