I've got model X constructed per other model Y and user U. X is stored in django-cache under key 'X_Y.id_U.id'. Now i want to delete all models X binded to Y from cache (for all users). How can i do this well?
Asked
Active
Viewed 46 times
0
-
Pass the list of keys to `cache.delete_many()`. You have a problem retrieving the list? – DrTyrsa Sep 26 '11 at 10:27
-
exactly, i've no idea how to retrieve the list. – santino Sep 26 '11 at 10:31
-
Show your models and an example how cache key is constructed. – DrTyrsa Sep 26 '11 at 10:36