erlang_adk_session_mnesia (erlang_adk v0.2.5)

View Source

erlang_adk_session_mnesia - Mnesia-backed implementation of adk_session_service.

Summary

Functions

Remove invocation-scoped temp: state after an invocation has completed.

Initialize the Mnesia tables. Call this if you intend to use Mnesia sessions.

Atomically read and remove one state value. Missing sessions and missing keys both return {error, not_found}.

Functions

add_event(AppName, UserId, SessionId, Event)

clear_temp_state(AppName, UserId, SessionId)

Remove invocation-scoped temp: state after an invocation has completed.

create_session(AppName, UserId, Opts)

delete(SessionId)

delete_session(AppName, UserId, SessionId)

get_session(AppName, UserId, SessionId)

init()

Initialize the Mnesia tables. Call this if you intend to use Mnesia sessions.

list_sessions(AppName, UserId)

load(SessionId)

save(SessionId, Memory)

take_state(AppName, UserId, SessionId, Key)

Atomically read and remove one state value. Missing sessions and missing keys both return {error, not_found}.

update_state(AppName, UserId, SessionId, StateDelta)