options() = #{size => unlimited | pos_integer(), time => unlimited | pos_integer(), policy => policy(), compressed => boolean()} | [{size, unlimited | pos_integer()} | {time, unlimited | pos_integer()} | {policy, policy()} | {compressed, boolean()}]
policy() = mru | actual_time
| cache_sup/4 | |
| cache_ttl_sup/5 | |
| child_spec/2 | |
| child_spec/3 | |
| child_spec/4 | |
| dirty/2 | |
| dirty/3 | |
| dirty_memoize/4 | |
| empty/1 | |
| get/2 | |
| memoize/4 | |
| rand/2 | |
| rand_keys/2 | |
| stats/1 | |
| total_size/1 |
cache_sup(Name, Mod::module(), Fun::atom(), Opts::options()) -> {Name, {ecache_server, start_link, [term()], permanent, brutal_kill, worker, [ecache_server]}}
Name = atom()
cache_ttl_sup(Name::atom(), Mod::module(), Fun::atom(), Size::unlimited | pos_integer(), TTL::unlimited | pos_integer()) -> {Name, {ecache_server, start_link, [term()], permanent, brutal_kill, worker, [ecache_server]}}
Name = atom()
child_spec(Name::atom(), Fun::fun((term()) -> any()) | {module(), atom()}) -> supervisor:child_spec()
child_spec(Name::atom(), Fun::fun((term()) -> any()), Opts::options()) -> supervisor:child_spec()
child_spec(Name::atom(), Fun::{Mod::module(), Fun::atom()}, Opts::options()) -> supervisor:child_spec()
child_spec(Name::atom(), Mod::module(), Fun::atom()) -> supervisor:child_spec()
child_spec(Name::atom(), Mod::module(), Fun::atom(), Opts::options()) -> supervisor:child_spec()
dirty(Name::atom(), Key::term()) -> ok
dirty(Name::atom(), Key::term(), NewData::term()) -> ok
dirty_memoize(MemoizeCacheServer::atom(), Module::module(), Fun::atom(), Key::term()) -> ok
empty(Name::atom()) -> ok
get(Name::atom(), Key::term()) -> term()
memoize(MemoizeCacheServer::atom(), Module::module(), Fun::atom(), Key::term()) -> term()
rand(Name::atom(), Count::non_neg_integer()) -> [term()]
rand_keys(Name::atom(), Count::non_neg_integer()) -> [term()]
stats(Name::atom()) -> [{cache_name, atom()} | {memory_size_bytes, pos_integer()} | {datum_count, non_neg_integer()} | {found, non_neg_integer()} | {launched, non_neg_integer()} | {policy, policy()} | {ttl, unlimited | pos_integer()}]
total_size(Name::atom()) -> non_neg_integer()
Generated by EDoc