Expander v0.0.1 Expander.Cache.Adapter behaviour View Source
Specification of getting and saving url from cache adapter.
Link to this section Summary
Link to this section Types
Link to this section Callbacks
Link to this callback
get(arg0, arg1)
View Source
get(Expander.Cache.Store.t, Expander.key) :: {:ok, Expander.Cache.Store.t, {:ok, Expander.value} | :error} | Expander.exception
Get URL from cache.
Link to this callback
set(arg0, arg1, arg2)
View Source
set(Expander.Cache.Store.t, Expander.key, Expander.value) :: {:ok, Expander.Cache.Store.t} | Expander.exception
Set URL in cache.
Link to this callback
setup(config)
View Source
setup(config) ::
{:ok, state :: term} |
:ignore |
{:stop, reason :: term}