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

Link to this section Callbacks

Link to this callback

load(binary, keyword, server)

View Source
@callback load(binary(), keyword(), GenServer.server()) :: map()
Link to this callback

put({}, {}, tuple, server)

View Source
@callback put({binary(), integer()}, {integer(), integer()}, tuple(), GenServer.server()) ::
  :ok
Link to this callback

serialise(binary, keyword, server)

View Source
@callback serialise(binary(), keyword(), GenServer.server()) :: term()

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

clear(user, server \\ __MODULE__, options)

View Source
@spec clear(binary(), GenServer.server(), keyword()) :: map()
Link to this function

get(key, server \\ __MODULE__)

View Source
@spec get(tuple(), GenServer.server()) :: map() | tuple()
Link to this function

load(user, server \\ __MODULE__, options \\ [])

View Source
Link to this function

put(arg1, arg2, value, server \\ __MODULE__)

View Source
Link to this function

reset(server \\ __MODULE__, options \\ [])

View Source
@spec reset(
  GenServer.server(),
  keyword()
) :: :ok
Link to this function

serialise(user, server \\ __MODULE__, options \\ [])

View Source
@spec state() :: boolean()
@spec state(GenServer.server()) :: map()