DataFetcher.CacheStorage behaviour (data_fetcher v0.1.0) View Source

Cache storage behaviour.

Link to this section Summary

Link to this section Callbacks

Specs

get(name :: atom()) :: {:ok, result :: any()} | nil

Specs

init(keyword()) :: :ok | {:error, any()}

Specs

put(name :: atom(), result :: any()) :: :ok | {:error, any()}