Module ecache_server

Behaviours: gen_server.

Function Index

code_change/3
handle_call/3
handle_cast/2
handle_info/2
init/1
start_link/3
start_link/4
start_link/5
start_link/6
terminate/2

Function Details

code_change/3

code_change(OldVsn::term(), State, Extra::term()) -> {ok, State}

handle_call/3

handle_call(Arbitrary::term(), From::{pid(), term()}, Cache::#cache{name = atom(), datum_index = ets:tid(), table_pad = non_neg_integer(), data_module = module(), reaper = undefined | pid(), data_accessor = atom(), size = unlimited | non_neg_integer(), found = non_neg_integer(), launched = non_neg_integer(), policy = ecache:policy(), ttl = unlimited | non_neg_integer()}) -> {reply, term(), #cache{name = atom(), datum_index = ets:tid(), table_pad = non_neg_integer(), data_module = module(), reaper = undefined | pid(), data_accessor = atom(), size = unlimited | non_neg_integer(), found = non_neg_integer(), launched = non_neg_integer(), policy = ecache:policy(), ttl = unlimited | non_neg_integer()}} | {noreply, #cache{name = atom(), datum_index = ets:tid(), table_pad = non_neg_integer(), data_module = module(), reaper = undefined | pid(), data_accessor = atom(), size = unlimited | non_neg_integer(), found = non_neg_integer(), launched = non_neg_integer(), policy = ecache:policy(), ttl = unlimited | non_neg_integer()}}

handle_cast/2

handle_cast(Req::term(), Cache::#cache{name = atom(), datum_index = ets:tid(), table_pad = non_neg_integer(), data_module = module(), reaper = undefined | pid(), data_accessor = atom(), size = unlimited | non_neg_integer(), found = non_neg_integer(), launched = non_neg_integer(), policy = ecache:policy(), ttl = unlimited | non_neg_integer()}) -> {noreply, #cache{name = atom(), datum_index = ets:tid(), table_pad = non_neg_integer(), data_module = module(), reaper = undefined | pid(), data_accessor = atom(), size = unlimited | non_neg_integer(), found = non_neg_integer(), launched = non_neg_integer(), policy = ecache:policy(), ttl = unlimited | non_neg_integer()}}

handle_info/2

handle_info(Info::term(), Cache::#cache{name = atom(), datum_index = ets:tid(), table_pad = non_neg_integer(), data_module = module(), reaper = undefined | pid(), data_accessor = atom(), size = unlimited | non_neg_integer(), found = non_neg_integer(), launched = non_neg_integer(), policy = ecache:policy(), ttl = unlimited | non_neg_integer()}) -> {noreply, #cache{name = atom(), datum_index = ets:tid(), table_pad = non_neg_integer(), data_module = module(), reaper = undefined | pid(), data_accessor = atom(), size = unlimited | non_neg_integer(), found = non_neg_integer(), launched = non_neg_integer(), policy = ecache:policy(), ttl = unlimited | non_neg_integer()}}

init/1

init(Cache::[atom() | module() | unlimited | pos_integer() | ecache:policy()] | #cache{name = atom(), datum_index = ets:tid(), table_pad = non_neg_integer(), data_module = module(), reaper = undefined | pid(), data_accessor = atom(), size = unlimited | non_neg_integer(), found = non_neg_integer(), launched = non_neg_integer(), policy = ecache:policy(), ttl = unlimited | non_neg_integer()}) -> {ok, #cache{name = atom(), datum_index = ets:tid(), table_pad = non_neg_integer(), data_module = module(), reaper = undefined | pid(), data_accessor = atom(), size = unlimited | non_neg_integer(), found = non_neg_integer(), launched = non_neg_integer(), policy = ecache:policy(), ttl = unlimited | non_neg_integer()}}

start_link/3

start_link(Name::atom(), Mod::module(), Fun::atom()) -> {ok, pid()} | {error, term()}

start_link/4

start_link(Name::atom(), Mod::module(), Fun::atom(), Opts::ecache:options()) -> {ok, pid()} | {error, term()}

start_link/5

start_link(Name::atom(), Mod::module(), Fun::atom(), Size::unlimited | pos_integer(), Time::unlimited | pos_integer()) -> {ok, pid()} | {error, term()}

start_link/6

start_link(Name::atom(), Mod::module(), Fun::atom(), Size::unlimited | pos_integer(), Time::unlimited | pos_integer(), Policy::ecache:policy()) -> {ok, pid()} | {error, term()}

terminate/2

terminate(Reason::term(), Cache::#cache{name = atom(), datum_index = ets:tid(), table_pad = non_neg_integer(), data_module = module(), reaper = undefined | pid(), data_accessor = atom(), size = unlimited | non_neg_integer(), found = non_neg_integer(), launched = non_neg_integer(), policy = ecache:policy(), ttl = unlimited | non_neg_integer()}) -> ok


Generated by EDoc