Delete keys by pattern redis
Safely scan-delete matching keys without KEYS command
redis-cli --scan --pattern 'cache:*' | xargs -r redis-cli DEL
more redis
all 32 commands →
Safely scan-delete matching keys without KEYS command
redis-cli --scan --pattern 'cache:*' | xargs -r redis-cli DEL