  This Source Code Form is subject to the terms of the Mozilla Public
  License , v. 2.0 . If a copy of the MPL was not distributed with this
  file , You can obtain one at /.
%%
  Copyright ( c ) 2007 - 2022 VMware , Inc. or its affiliates .   All rights reserved .
%%

-module(osiris_ets).

-behaviour(gen_server).

%% API functions
-export([start_link/0]).
%% gen_server callbacks
-export([init/1,
         handle_call/3,
         handle_cast/2,
         handle_info/2,
         terminate/2,
         code_change/3]).

-record(state, {}).

%%%===================================================================
%%% API functions
%%%===================================================================

    ( ) - > { ok , Pid } | ignore | { error , Error }
start_link() ->
    gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).

%%%===================================================================
%%% gen_server callbacks
%%%===================================================================

    ) - > { ok , State } |
                      { ok , State , Timeout } |
%%                     ignore |
%%                     {stop, Reason}
init(_) ->
    _ = ets:new(osiris_reader_context_cache, [set, named_table, public]),
    {ok, #state{}}.

    , From , State ) - >
%%                                   {reply, Reply, State} |
                                    { reply , Reply , State , Timeout } |
                                    { noreply , State } |
                                    { noreply , State , Timeout } |
%%                                   {stop, Reason, Reply, State} |
%%                                   {stop, Reason, State}
handle_call(_Request, _From, State) ->
    Reply = ok,
    {reply, Reply, State}.

  @spec handle_cast(Msg , State ) - > { noreply , State } |
                                   { noreply , State , Timeout } |
%%                                  {stop, Reason, State}
handle_cast(_Msg, State) ->
    {noreply, State}.

    , State ) - > { noreply , State } |
                                    { noreply , State , Timeout } |
%%                                   {stop, Reason, State}
handle_info(_Info, State) ->
    {noreply, State}.

    , State ) - > void ( )
terminate(_Reason, _State) ->
    ok.

    , State , Extra ) - > { ok , NewState }
code_change(_OldVsn, State, _Extra) ->
    {ok, State}.

%%%===================================================================
  Internal functions
%%%===================================================================



 API functions
 gen_server callbacks
===================================================================
 API functions
===================================================================
===================================================================
 gen_server callbacks
===================================================================
                     ignore |
                     {stop, Reason}
                                   {reply, Reply, State} |
                                   {stop, Reason, Reply, State} |
                                   {stop, Reason, State}
                                  {stop, Reason, State}
                                   {stop, Reason, State}
===================================================================
===================================================================
  This Source Code Form is subject to the terms of the Mozilla Public
  License , v. 2.0 . If a copy of the MPL was not distributed with this
  file , You can obtain one at /.
  Copyright ( c ) 2007 - 2022 VMware , Inc. or its affiliates .   All rights reserved .

-module(osiris_ets).

-behaviour(gen_server).

-export([start_link/0]).
-export([init/1,
         handle_call/3,
         handle_cast/2,
         handle_info/2,
         terminate/2,
         code_change/3]).

-record(state, {}).


    ( ) - > { ok , Pid } | ignore | { error , Error }
start_link() ->
    gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).


    ) - > { ok , State } |
                      { ok , State , Timeout } |
init(_) ->
    _ = ets:new(osiris_reader_context_cache, [set, named_table, public]),
    {ok, #state{}}.

    , From , State ) - >
                                    { reply , Reply , State , Timeout } |
                                    { noreply , State } |
                                    { noreply , State , Timeout } |
handle_call(_Request, _From, State) ->
    Reply = ok,
    {reply, Reply, State}.

  @spec handle_cast(Msg , State ) - > { noreply , State } |
                                   { noreply , State , Timeout } |
handle_cast(_Msg, State) ->
    {noreply, State}.

    , State ) - > { noreply , State } |
                                    { noreply , State , Timeout } |
handle_info(_Info, State) ->
    {noreply, State}.

    , State ) - > void ( )
terminate(_Reason, _State) ->
    ok.

    , State , Extra ) - > { ok , NewState }
code_change(_OldVsn, State, _Extra) ->
    {ok, State}.

  Internal functions
