ADK.Session.Store.InMemory (ADK v0.0.1-alpha.1)

Copy Markdown View Source

ETS-backed in-memory session store.

Sessions are stored in an ETS table and survive process restarts within the same BEAM node, but not node restarts.

Usage

# Start the store (usually in your supervision tree)
ADK.Session.Store.InMemory.start_link([])

# Use with sessions
ADK.Session.start_link(
  app_name: "my_app",
  user_id: "user1",
  session_id: "sess1",
  store: {ADK.Session.Store.InMemory, []}
)

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()