View Source Nostrum.Cache.PresenceCache.ETS (Nostrum v0.8.0)
ETS-based cache for user presences.
If you need to get the table reference for the table used by this module,
please use the table/0
function.
Link to this section Summary
Functions
Bulk create multiple presences in the cache.
Returns a specification to start this module under a supervisor.
Add the given presence data to the cache.
Set up the cache's ETS table.
Retrieve a query handle for QLC queries.
Start the supervisor.
Retrieve the ETS table reference used for the cache.
Update the given presence data in the cache.
Link to this section Functions
@spec bulk_create(Nostrum.Struct.Guild.id(), [map()]) :: :ok
Bulk create multiple presences in the cache.
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec create(map()) :: :ok
Add the given presence data to the cache.
Set up the cache's ETS table.
@spec query_handle() :: :qlc.query_handle()
Retrieve a query handle for QLC queries.
Start the supervisor.
@spec table() :: :ets.table()
Retrieve the ETS table reference used for the cache.
@spec update(map()) :: {Nostrum.Struct.Guild.id(), presence | nil, presence} | :noop when presence: Nostrum.Cache.PresenceCache.presence()
Update the given presence data in the cache.