erlang_adk_session (erlang_adk v0.2.0)

View Source

erlang_adk_session - ETS-backed implementation of adk_session_service.

Summary

Functions

add_event(AppName, UserId, SessionId, Event)

create_session(AppName, UserId, Opts)

delete(SessionId)

delete_session(AppName, UserId, SessionId)

get_session(AppName, UserId, SessionId)

init()

Initialize the ETS table. Should be called by the application startup.

list_sessions(AppName, UserId)

load(SessionId)

save(SessionId, Memory)

update_state(AppName, UserId, SessionId, StateDelta)