Module ecache

Data Types

options()

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()

policy() = mru | actual_time

Function Index

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

Function Details

cache_sup/4

cache_sup(Name, Mod::module(), Fun::atom(), Opts::options()) -> {Name, {ecache_server, start_link, [term()], permanent, brutal_kill, worker, [ecache_server]}}

cache_ttl_sup/5

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]}}

child_spec/2

child_spec(Name::atom(), Fun::fun((term()) -> any()) | {module(), atom()}) -> supervisor:child_spec()

child_spec/3

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/4

child_spec(Name::atom(), Mod::module(), Fun::atom(), Opts::options()) -> supervisor:child_spec()

dirty/2

dirty(Name::atom(), Key::term()) -> ok

dirty/3

dirty(Name::atom(), Key::term(), NewData::term()) -> ok

dirty_memoize/4

dirty_memoize(MemoizeCacheServer::atom(), Module::module(), Fun::atom(), Key::term()) -> ok

empty/1

empty(Name::atom()) -> ok

get/2

get(Name::atom(), Key::term()) -> term()

memoize/4

memoize(MemoizeCacheServer::atom(), Module::module(), Fun::atom(), Key::term()) -> term()

rand/2

rand(Name::atom(), Count::non_neg_integer()) -> [term()]

rand_keys/2

rand_keys(Name::atom(), Count::non_neg_integer()) -> [term()]

stats/1

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/1

total_size(Name::atom()) -> non_neg_integer()


Generated by EDoc