mirror of
https://github.com/valitydev/cache.git
synced 2024-11-06 01:45:19 +00:00
release 0.8.0 merge with github version
This commit is contained in:
commit
916366089c
@ -175,7 +175,3 @@ remove(Cache, Key) ->
|
||||
remove_(Cache, Key) ->
|
||||
gen_server:cast(Cache, {remove, Key}).
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -18,11 +18,18 @@
|
||||
-module(cache_sup).
|
||||
-behaviour(supervisor).
|
||||
-author('Dmitry Kolesnikov <dmkolesnikov@gmail.com>').
|
||||
-author('Jose Luis Navarro <jlnavarro@gmail.com>').
|
||||
|
||||
-export([start_link/0, init/1]).
|
||||
%% API
|
||||
-export([start_link/0]).
|
||||
|
||||
%% Supervisor callbacks
|
||||
-export([init/1]).
|
||||
|
||||
%% ===================================================================
|
||||
%% API functions
|
||||
%% ===================================================================
|
||||
|
||||
%%
|
||||
%%
|
||||
start_link() ->
|
||||
{ok, Sup} = supervisor:start_link({local, ?MODULE}, ?MODULE, []),
|
||||
lists:foreach(
|
||||
@ -31,8 +38,12 @@ start_link() ->
|
||||
),
|
||||
{ok, Sup}.
|
||||
|
||||
%% ===================================================================
|
||||
%% Supervisor callbacks
|
||||
%% ===================================================================
|
||||
|
||||
init([]) ->
|
||||
{ok,
|
||||
{ok,
|
||||
{
|
||||
{one_for_one, 4, 1800},
|
||||
[]
|
||||
|
Loading…
Reference in New Issue
Block a user