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