Nostrum.Cache.Me (nostrum v0.11.0-dev)

View Source

Simple cache that stores information for the current user.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the current user's state.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get()

@spec get() :: Nostrum.Struct.User.t() | nil

Returns the current user's state.

start_link(list)