privex.helpers.cache.extras

Functions

fake_lock_manager([lock])

z_cache([cls, cache_key, cache_time, …])

A special method caching decorator which is designed to integrate with classes that extend CacheManagerMixin

Classes

CacheManagerMixin()

CacheManagerMixin is a class mixin which adds various methods and settings to assist with class-scoped caching, including an adjustable class-level cache prefix cache_prefix, a method to remove all known cache keys managed by your class clear_all_cache_keys(), and a special decorator which automatically integrates with your class z_cache() by intercepting the first argument of a method call.

CacheSettings(cache_prefix, …)

NO_LOCK

alias of privex.helpers.cache.extras.NoLock