dico.cache module
- class dico.cache.CacheContainer(default_expiration_time=None, **max_sizes)
Bases:
object- get(snowflake_id, storage_type=None, *, ignore_expiration=True)
- get_storage(storage_type)
- get_guild_container(guild_id)
- add(snowflake_id, obj_type, obj, expire_at=None)
- remove(snowflake_id, obj_type)
- reset(obj_type=None)
- get_size(cache_type)
- property available_cache_types
- property size
- class dico.cache.GuildCacheContainer(default_expiration_time=None, **max_sizes)
Bases:
CacheContainer- get_guild_container(*args, **kwargs)