IndieWeb v0.0.38 IndieWeb.Cache.Adapter behaviour View Source
This provides the interface that adapters should implement if they'd like
IndieWeb to use it for caching values. Check IndieWeb
for more information
and IndieWeb.Cache.Adapters.Cachex
for more information.
Link to this section Summary
Callbacks
Defines the method of deleting a cached value
Defines the method for obtaining a cached value
Defines the method of setting of a cached value
Link to this section Callbacks
Link to this callback
delete(key)
View Source
delete(key)
View Source
delete(key :: binary()) :: :ok | :error
delete(key :: binary()) :: :ok | :error
Defines the method of deleting a cached value.
Link to this callback
get(key) View Source
Defines the method for obtaining a cached value.
Link to this callback
set(key, value, options) View Source
Defines the method of setting of a cached value.