pylav.storage.database.cache package#

Submodules#

pylav.storage.database.cache.cache module#

pylav.storage.database.cache.decodators module#

pylav.storage.database.cache.decodators.maybe_cached(func)[source]#

pylav.storage.database.cache.functions module#

async pylav.storage.database.cache.functions.invalidate_cache(method, instance)[source]#
async pylav.storage.database.cache.functions.invalidate_cache_multi(methods, instance)[source]#
pylav.storage.database.cache.functions.key_builder(method, *args, **kwargs)[source]#
async pylav.storage.database.cache.functions.update_cache(method, instance, value)[source]#
async pylav.storage.database.cache.functions.update_cache_multi(pairs, instance)[source]#

pylav.storage.database.cache.logging module#

pylav.storage.database.cache.model module#

class pylav.storage.database.cache.model.CachedModel[source]#

Bases: object

classmethod attach_client(client)[source]#
property client#

Get the client

get_all_methods()[source]#

Get all methods of the class

async invalidate_cache(*methods)[source]#

Invalidate the cache for the given methods if not specify all

async update_cache(*pairs)[source]#

Update the cache for the specified method

Module contents#