Condukt.SessionStore.Memory (Condukt v3.0.0)

Copy Markdown View Source

ETS-backed session store for restoring sessions within the current virtual machine.

The table is owned by a supervised process rather than by whichever caller reaches it first, so it lives as long as the application does. See Condukt.SessionStore.Memory.Table.

The default key is {agent_module, cwd, id}, which is shared state: two concurrent tests using the same agent in the same directory address the same entry. Pass an explicit :key (or a unique :id) to keep them apart.

The journal lives in the same table under its own entry, so a session that crashed mid-run can be restarted in the same virtual machine and resumed.