mirror of
https://github.com/django/django.git
synced 2024-11-22 03:18:31 +01:00
13 lines
218 B
Python
13 lines
218 B
Python
from django.core.cache.backends.locmem import LocMemCache
|
|
|
|
|
|
class CloseHookMixin:
|
|
closed = False
|
|
|
|
def close(self, **kwargs):
|
|
self.closed = True
|
|
|
|
|
|
class CacheClass(CloseHookMixin, LocMemCache):
|
|
pass
|