CacheMoney.Adapter behaviour (Cache Money v0.5.4) 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

Specs

delete(config(), key()) :: {:ok, value()} | {:error, any()}

Specs

get(config(), key()) :: {:ok, value()} | {:error, any()}

Specs

set(config(), key(), value()) :: {:ok, value()} | {:error, any()}
Link to this callback

set(config, key, value, expiry)

View Source

Specs

set(config(), key(), value(), expiry()) :: {:ok, value()} | {:error, any()}

Specs

start_link(config()) :: config()