View Source LastfmArchive.Cache behaviour (lastfm_archive v0.9.2)
GenServer storing archiving state to ensure scrobbles are fetched only once.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Callbacks
@callback load(binary(), keyword(), GenServer.server()) :: map()
@callback serialise(binary(), keyword(), GenServer.server()) :: term()
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec clear(binary(), GenServer.server(), keyword()) :: map()
@spec get(tuple(), GenServer.server()) :: map() | tuple()
@spec reset( GenServer.server(), keyword() ) :: :ok
@spec state() :: boolean()
@spec state(GenServer.server()) :: map()