ETS-based cache for Discord users.
Provides O(1) lookups for user data.
Summary
Functions
Gets all cached users.
Returns a specification to start this module under a supervisor.
Returns the number of cached users.
Creates or replaces a user in the cache.
Deletes a user from the cache.
Gets a user from the cache.
Updates a user in the cache.
Functions
@spec all() :: [map()]
Gets all cached users.
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec count() :: non_neg_integer()
Returns the number of cached users.
Creates or replaces a user in the cache.
Deletes a user from the cache.
Gets a user from the cache.
Updates a user in the cache.