Memoize.CacheStrategy behaviour (memoize v1.4.0) View Source

A behaviour module for implementing cache strategy.

Link to this section Summary

Link to this section Functions

Link to this section Callbacks

Specs

cache(any(), any(), Keyword.t()) :: any()

Specs

garbage_collect() :: integer()

Specs

init() :: any()

Specs

init(Keyword.t()) :: Keyword.t()

Specs

invalidate() :: integer()

Specs

invalidate(any()) :: integer()

Specs

read(any(), any(), any()) :: :ok | :retry

Specs

tab(any()) :: atom()