o a@sdZddlmZddlmZmZmZmZddlm Z m Z ddl m Z gdZ dZGdd d e ZeZe eeZd d Zejed S) a Caching framework. This package defines set of cache backends that all conform to a simple API. In a nutshell, a cache is a set of values -- which can be any object that may be pickled -- identified by string keys. For the complete API, see the abstract BaseCache class in django.core.cache.backends.base. Client code should use the `cache` variable defined here to access the default cache backend and look up non-default cache backends in the `caches` dict-like object. See docs/topics/cache.txt for information on the public API. )signals) BaseCacheCacheKeyWarningInvalidCacheBackendErrorInvalidCacheKey)BaseConnectionHandlerConnectionProxy) import_string)cachecachesDEFAULT_CACHE_ALIASrrrrdefaultc@s&eZdZdZeZddZdddZdS) CacheHandlerCACHESc Csf|j|}|d}|dd}zt|}Wnty-}z td||f|d}~ww|||S)NBACKENDLOCATIONzCould not find backend '%s': %s)settingscopypopr ImportErrorr)selfaliasparamsbackendlocation backend_clser/s z$CacheHandler.all..r)rr%rr$rall.s zCacheHandler.allN)F)__name__ __module__ __qualname__ settings_namerexception_classr r'rrrrrs  rcKstjddD]}|qdS)NT)r%)r r'close)kwargsr rrr close_caches;s r/N)__doc__ django.corerdjango.core.cache.backends.baserrrrdjango.utils.connectionrrdjango.utils.module_loadingr __all__r rr r r/request_finishedconnectrrrrs