Module z_server_storage

Simple data storage in processes.

Copyright © 2020 Marc Worrell

Behaviours: gen_server.

Authors: Marc Worrell (marc@worrell.nl).

Description

Simple data storage in processes.

Function Index

code_change/3
delete/2
delete/3
handle_call/3
handle_cast/2
handle_info/2
init/1
lookup/2
lookup/3
ping/2
secure_delete/2
secure_delete/3
secure_lookup/2
secure_lookup/3
secure_store/4
start_link/2
stop/2
store/4
terminate/2

Function Details

code_change/3

code_change(OldVersion, State, Extra) -> any()

delete/2

delete(SessionId::binary(), Context::z:context()) -> ok | {error, no_session}

delete/3

delete(SessionId::binary(), Key::term(), Context::z:context()) -> ok | {error, no_session}

handle_call/3

handle_call(X1, From, State) -> any()

handle_cast/2

handle_cast(X1, State) -> any()

handle_info/2

handle_info(X1, State) -> any()

init/1

init(X1) -> any()

lookup/2

lookup(SessionId::binary(), Context::z:context()) -> {ok, map()} | {error, not_found | no_session}

lookup/3

lookup(SessionId::binary(), Key::term(), Context::z:context()) -> {ok, term()} | {error, not_found | no_session}

ping/2

ping(SessionId::binary(), Context::z:context()) -> ok | {error, no_session}

secure_delete/2

secure_delete(SessionId::binary(), Context::z:context()) -> ok | {error, no_session}

secure_delete/3

secure_delete(SessionId::binary(), Key::term(), Context::z:context()) -> ok | {error, no_session}

secure_lookup/2

secure_lookup(SessionId::term(), Context::z:context()) -> {ok, term()} | {error, not_found | no_session}

secure_lookup/3

secure_lookup(SessionId::binary(), Key::term(), Context::z:context()) -> {ok, term()} | {error, not_found | no_session}

secure_store/4

secure_store(SessionId::binary(), Key::term(), Value::term(), Context::z:context()) -> ok | {error, no_session}

start_link/2

start_link(SessionId::binary(), Context::z:context()) -> {ok, pid()} | {error, {already_started, pid()}}

stop/2

stop(SessionId::binary(), Context::z:context()) -> ok | {error, no_session}

store/4

store(SessionId::binary(), Key::term(), Value::term(), Context::z:context()) -> ok | {error, no_session | full}

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc