Currently we're using Redis in our application for storing different kinds of data, using prefixes to split each group. We have many "data groups" and they will grow in production environment, both as quantity and size.
We have a requirement that implies the deletion of all keys for a specific kind of data (all keys with a given prefix), and of course we don't want to use the KEYS
command (and we will not use multiple DBs because it's a deprecated practice in Redis).
Furthermore, we are planning to use Redis Cluster in production environments and we have to cover this requirement in the same way.
There is a standard way to delete all keys for a given hashtag? (see docs here)
Note: we are not going to split data in different Redis instances, since it could lead to a messy system architecture (we should manage failover for each instance)