Basic Redis Commands

Dhruv Saksena
Feb 3, 2022

--

  1. 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

--

--

No responses yet