Cache Money v0.5.0 CacheMoney.Adapter behaviour View Source

This module specifies the adapter API that an adapter is required to implement.

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Link to this callback delete(config, key) View Source
delete(config(), key()) :: {:ok, value()} | {:error, any()}
Link to this callback get(config, key) View Source
get(config(), key()) :: {:ok, value()} | {:error, any()}
Link to this callback set(config, key, value) View Source
set(config(), key(), value()) :: {:ok, value()} | {:error, any()}
Link to this callback set(config, key, value, expiry) View Source
set(config(), key(), value(), expiry()) :: {:ok, value()} | {:error, any()}
Link to this callback start_link(config) View Source
start_link(config()) :: config()