I have installed Redis in centos and I have multiple keys of redis like this,
Product:<id>:<url>
How can I delete all Product:*:*
with CLI ?
Redis version : 3.2.4 [ Latest I guess ]
Thanks!
Using the redis-cli
tool, you can do the following:
redis-cli --scan --pattern 'Product:*:*' | xargs redis-cli DEL