I\'m writing a django management command to handle some of our redis caching. Basically, I need to choose all keys, that confirm to a certain pattern (for example: \"prefix:
Btw, for the django-redis you can use the following (from https://niwinz.github.io/django-redis/latest/):
from django.core.cache import cache cache.delete_pattern("foo_*")