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

A behaviour module for implementing cache strategy.

Summary

Callbacks

@callback cache(any(), any(), Keyword.t()) :: any()
@callback garbage_collect() :: integer()
@callback init() :: any()
@callback init(Keyword.t()) :: Keyword.t()
@callback invalidate() :: integer()
@callback invalidate(any()) :: integer()
@callback read(any(), any(), any()) :: :ok | :retry
@callback tab(any()) :: atom()

Functions