nova_session_ets (nova v0.14.3)

View Source

Summary

Functions

delete_value(SessionId)

-spec delete_value(SessionId :: binary()) -> ok | {error, Reason :: term()}.

delete_value(SessionId, Key)

-spec delete_value(SessionId :: binary(), Key :: binary()) -> ok | {error, Reason :: term()}.

get_value(SessionId, Key)

-spec get_value(SessionId :: binary(), Key :: binary()) -> {ok, Value :: binary()} | {error, not_found}.

set_value(SessionId, Key, Value)

-spec set_value(SessionId :: binary(), Key :: binary(), Value :: binary()) ->
                   ok | {error, Reason :: term()}.

start_link()

-spec start_link() ->
                    {ok, Pid :: pid()} |
                    {error, Error :: {already_started, pid()}} |
                    {error, Error :: term()} |
                    ignore.

Starts the server