View Source Nostrum.Cache.PresenceCache.NoOp (Nostrum v0.7.0)

A cache module that does not cache anything.

Useful for bots that do not need presence caching.

Link to this section Summary

Functions

Do not bulk create multiple presences in the cache.

Returns a specification to start this module under a supervisor.

Do not add the given presence data to the cache.

Start up the cache supervisor.

Start the supervisor.

Return the presence update for consumers.

Link to this section Functions

Link to this function

bulk_create(guild_id, presences)

View Source (since 0.5.0)
@spec bulk_create(Nostrum.Struct.Guild.id(), [map()]) :: :ok

Do not bulk create multiple presences in the cache.

Link to this function

child_spec(init_arg)

View Source (since 0.5.0)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

create(presence)

View Source (since 0.5.0)
@spec create(map()) :: :ok

Do not add the given presence data to the cache.

Link to this function

init(init_arg)

View Source (since 0.5.0)

Start up the cache supervisor.

Link to this function

start_link(init_arg)

View Source (since 0.5.0)

Start the supervisor.

Link to this function

update(presence)

View Source (since 0.5.0)
@spec update(map()) :: {Nostrum.Struct.Guild.id(), nil | map(), map()} | :noop

Return the presence update for consumers.