Glific v0.3.1 Glific.Caches.CacheBehaviour behaviour View Source

The cache API behaviour

Link to this section Summary

Link to this section Callbacks

Specs

get(String.t() | atom()) :: {:ok, any()} | {:ok, false}

Specs

remove(list()) :: any()

Specs

set(list(), any()) :: {:ok, any()}
set(String.t() | atom(), any()) :: {:ok, any()}
Link to this callback

set(list, function, map)

View Source

Specs

set(list(), (any() -> any()), map()) :: {:ok, any()}