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}.
Returns the pid of a cache.

Specs

init_cache(Cachename :: atom()) ->
              {ok, Child} |
              {ok, Child, Info :: term()} |
              {error, {already_started, pid()} | {shutdown, term()} | term()}
              when Child :: undefined | pid().
Initializes the cache.

Specs

remove_cache(Cachename :: atom()) -> ok | {error, Reason :: not_found | simple_one_for_one}.
Removes a cache. This terminates the corresponding process.

Specs

start_link() ->
              {ok, Pid :: pid()} |
              {error, {already_started, Pid :: pid()}} |
              {error, {shutdown, term()}} |
              {error, term()} |
              ignore.
Starts the supervisor