marina_cache (marina v0.4.3)

View Source

Summary

Functions

erase(Pool, Key)

-spec erase(atom(), binary()) -> ok | {error, not_found}.

erase_pool(Pool)

-spec erase_pool(atom()) -> non_neg_integer().

erase_server(_)

-spec erase_server(shackle:request_id()) -> ok.

get(Pool, Key)

-spec get(atom(), binary()) -> {ok, term()} | {error, not_found}.

init()

-spec init() -> marina_cache.

put(Pool, Key, Value)

-spec put(atom(), binary(), term()) -> ok.