%%% Copyright (c) 2014, NORDUnet A/S. %%% See LICENSE for licensing information. -module(catlfish_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). -include("catlfish.hrl"). %% =================================================================== %% Application callbacks %% =================================================================== start(normal, Args) -> case ets:info(?CACHE_TABLE) of undefined -> ok; _ -> ets:delete(?CACHE_TABLE) end, ets:new(?CACHE_TABLE, [set, public, named_table]), catlfish_sup:start_link(Args). stop(_State) -> ok.