SharedSettings.Cache behaviour (shared_settings v0.2.0)

A behaviour module for cache adapters

See SharedSettings.Store for more

Link to this section Summary

Callbacks

Deletes a setting, identified by name.

Retrieves a setting by name.

Persists a setting

Link to this section Callbacks

Specs

delete(name :: String.t()) :: :ok | {:error, any()}

Deletes a setting, identified by name.

Specs

get(name :: String.t()) :: {:ok, SharedSettings.Setting.t()} | {:error, any()}

Retrieves a setting by name.

Specs

put(setting :: SharedSettings.Setting.t()) ::
  {:ok, String.t()} | {:error, any()}

Persists a setting