abc.Cache
Class Reference
- class levelling.abc.Cache(*args, **kwargs)
A base interface for cache’s
- async get_guild(guild_id: int) levelling.dataclass.LevellingGuild
Returns the associated guilds data
- async get_member(member_id: int, guild_id: Optional[int] = None) levelling.dataclass.LevellingMember
Returns the associated member data
Where
guild_id
isNone
implies a global levelling storage
- async set_member(member_id: int, data: dict, guild_id: Optional[int] = None) None
Store data within the cache attached to a member
Where
guild_id
isNone
implies a global levelling storage