redis

How to delete keys for which the value matches a pattern in Redis?

Solution

$ redis-cli --scan --pattern "car:vw*" | xargs redis-cli del

 

How to watch Redis activity

Solution

Run:

$ redis-cli

Then, type MONITOR.