ETS-based cache for Discord guilds.
Provides O(1) lookups for guild data.
Summary
Functions
Gets all cached guilds.
Returns a specification to start this module under a supervisor.
Returns the number of cached guilds.
Creates or replaces a guild in the cache.
Deletes a guild from the cache.
Gets a guild from the cache as a raw map (string keys).
Updates a guild in the cache.
Functions
@spec all() :: [map()]
Gets all cached guilds.
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec count() :: non_neg_integer()
Returns the number of cached guilds.
Creates or replaces a guild in the cache.
Deletes a guild from the cache.
Gets a guild from the cache as a raw map (string keys).
This is the low-level cache accessor. For a typed %EDA.Guild{} struct,
use EDA.Guild.fetch/1 instead which parses the raw map automatically.
Updates a guild in the cache.