Added future handlers for Mnesia

This commit is contained in:
Jonatan Pålsson 2011-02-02 19:58:34 +01:00
parent 3285bb9a7e
commit ae9034934e

View file

@ -46,8 +46,13 @@ init([]) ->
handle_cast(a, State) ->
{noreply, State}.
handle_call({getValue, Key},_From,State) ->
{reply,value_of_key_requested_goes_here, State}.
% Request a value from the Mnesia database
handle_call({getValue, _Key},_From,State) ->
{reply,value_of_key_requested_goes_here, State};
% Set a value in the Mnesia database
handle_call({setValue, _Key, Value},_From,State) ->
{reply,value_set_or_updated, State}.
handle_info(timeout, State) ->
{noreply, State}.