mirror of
https://github.com/valitydev/cache.git
synced 2024-11-06 09:55:20 +00:00
Add OTP application configuration
This commit is contained in:
parent
d4e9fb024a
commit
d14197f014
@ -25,10 +25,10 @@ start_link() ->
|
||||
%% ===================================================================
|
||||
|
||||
init([]) ->
|
||||
Params = [],
|
||||
Env = proplists:delete(included_applications, application:get_all_env()),
|
||||
{ok,
|
||||
{
|
||||
{one_for_one, 4, 1800},
|
||||
[?CHILD(cache, worker, [Params])]
|
||||
[?CHILD(cache, worker, [Env])]
|
||||
}
|
||||
}.
|
Loading…
Reference in New Issue
Block a user