ADK.Session.InMemory (adk_ex v1.1.0)

Copy Markdown View Source

In-memory session service backed by ETS tables.

Uses a GenServer to own three ETS tables:

  • sessions — stores session data keyed by {app_name, user_id, session_id}
  • app_state — app-level state keyed by app_name
  • user_state — user-level state keyed by {app_name, user_id}

Reads go directly to ETS (with read_concurrency: true). Writes are serialized through GenServer calls.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the InMemorySessionService.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

Starts the InMemorySessionService.