erlang_adk_session (erlang_adk v0.2.5)

View Source

erlang_adk_session - ETS-backed implementation of adk_session_service.

Summary

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 session storage.

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)