4.2.1.2. Package apps.managers.cache_mgr

Manages caching data structures.

4.2.1.2.1. Module apps.managers.cache_mgr.cache_mgr

Provides utility methods for invalidating various caches.

apps.managers.cache_mgr.cache_mgr.clear()[source]

proxy the call to django cache.clear.

apps.managers.cache_mgr.cache_mgr.delete(key, version=None)[source]

proxy the call to django cache.delete.

apps.managers.cache_mgr.cache_mgr.get_cache(key, default=None, version=None)[source]

proxy the call to django cache.get.

apps.managers.cache_mgr.cache_mgr.info()[source]

return the information about this cache.

apps.managers.cache_mgr.cache_mgr.invalidate_template_cache(fragment_name, *variables)[source]

Invalidates the cache associated with a template. Credit: djangosnippets.org/snippets/1593/

apps.managers.cache_mgr.cache_mgr.set_cache(key, value, timeout=None, version=None)[source]

proxy the call to django cache.set.

Table Of Contents

Previous topic

4.2.1.1. Package apps.managers.auth_mgr

Next topic

4.2.1.3. Package apps.managers.challenge_mgr

This Page