nova_cache_sup (nova v0.8.1) View Source
Link to this section Summary
Functions
Returns the pid of a cache.
Initializes the cache.
Removes a cache. This terminates the corresponding process.
Starts the supervisor
Link to this section Functions
Specs
get_cache(Cachename :: atom()) -> {ok, Id :: pid()} | {error, not_found}.
Specs
init_cache(Cachename :: atom()) ->
{ok, Child} |
{ok, Child, Info :: term()} |
{error, {already_started, pid()} | {shutdown, term()} | term()}
when Child :: undefined | pid().
Specs
remove_cache(Cachename :: atom()) -> ok | {error, Reason :: not_found | simple_one_for_one}.
Specs
start_link() ->
{ok, Pid :: pid()} |
{error, {already_started, Pid :: pid()}} |
{error, {shutdown, term()}} |
{error, term()} |
ignore.