def cache ( self ) : if self . _cache is None : self . _cache = django_cache . get_cache ( self . cache_name ) return self . _cache
catch code in cache mem python
Memoize access to the cache backend .
def cache(self):
        """Memoize access to the cache backend."""
        if self._cache is None:
            self._cache = django_cache.get_cache(self.cache_name)
        return self._cache