Mass-deleting Redis keysEdit
Example
redis-cli --scan --pattern "masochist:[12345]:*" | xargs -L 100 redis-cli DEL
redis-cli --scan --pattern "masochist:[12345]:*" | xargs -L 100 redis-cli DEL
For more context, see this issue.
For alternative means, see this Stack Overflow question.
You can delete everything easily with (via Stack Overflow):
redis-cli flushall