IndieWeb v0.0.12 IndieWeb.Cache
Provides the generic interface for handling caching logic in Koype.
Configuration
In order to change the underlying adapter used, set the :cache_adapter value to an
implementation of IndieWeb.Cache.Adapter. By default, Cachex by way of
IndieWeb.Cache.Adapters.Cachex is used.
Link to this section Summary
Functions
Obtains an implementation of a IndieWeb.Cache.Adapter module
Removes the value of key key from the adapter
Fetches the value defined by key from the adapter; returning value if it doesn't exist
Sets the key key with the value value to the adapter
Link to this section Functions
adapter()
adapter() :: IndieWeb.Cache.Adapter.t()
adapter() :: IndieWeb.Cache.Adapter.t()
Obtains an implementation of a IndieWeb.Cache.Adapter module.
delete(key)
delete(binary()) :: :ok | :error
delete(binary()) :: :ok | :error
Removes the value of key key from the adapter.
get(key, value \\ nil)
Fetches the value defined by key from the adapter; returning value if it doesn't exist.
set(key, value)
Sets the key key with the value value to the adapter.