View Source ExCache behaviour (ex_cache v0.1.0)

Documentation for ExCache.

Summary

Types

@type fallback() :: (k() -> {:commit, v()} | {:ignore, v()})
@type k() :: term()
@type name() :: term()
@type put_opts() :: [{:ttl, pos_integer() | :infinity}]
@type t() :: pid() | {atom(), node()} | ExCache.Typespecs.name()
@type v() :: term() | nil

Callbacks

@callback del(t(), k()) :: any()
@callback get(t(), k()) :: v()
@callback put(t(), k(), v(), put_opts()) :: any()