2012-02-10 09:13:09 +08:00
|
|
|
from django.core.cache.backends.locmem import LocMemCache
|
|
|
|
|
|
|
|
|
2017-01-19 15:39:46 +08:00
|
|
|
class CloseHookMixin:
|
2012-02-10 09:13:09 +08:00
|
|
|
closed = False
|
|
|
|
|
|
|
|
def close(self, **kwargs):
|
|
|
|
self.closed = True
|
|
|
|
|
2013-11-03 12:36:09 +08:00
|
|
|
|
2012-02-10 09:13:09 +08:00
|
|
|
class CacheClass(CloseHookMixin, LocMemCache):
|
|
|
|
pass
|