Basic Redis Commands
Feb 3, 2022
- Delete keys matching a pattern
redis-cli -h <<ip-address>> -n 5 --scan --pattern '<<regex>>' | xargs redis-cli -h <<ip-address>> -n 5 del
Here, “5” is the database within REDIS
redis-cli -h <<ip-address>> -n 5 --scan --pattern '<<regex>>' | xargs redis-cli -h <<ip-address>> -n 5 del
Here, “5” is the database within REDIS