View Source LastfmArchive.Cache behaviour (lastfm_archive v0.9.3)

GenServer storing archiving state to ensure scrobbles are fetched only once.

Link to this section Summary

Link to this section Callbacks

@callback get(tuple(), GenServer.server()) :: map()
Link to this callback

load(binary, server, keyword)

View Source
@callback load(binary(), GenServer.server(), keyword()) :: 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, server, keyword)

View Source
@callback serialise(binary(), GenServer.server(), keyword()) :: 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
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()