Condukt.SessionStore.Disk (Condukt v3.0.0)

Copy Markdown View Source

Disk-backed session store using Erlang term serialization.

By default snapshots are written to .condukt/session.store in the configured working directory. Override with path: ....

The journal is an append-only file next to the snapshot, at the snapshot's path with .journal added, or at journal_path: .... Each record is one length-prefixed Erlang term. Appends survive the process dying, not the machine losing power: like snapshots, they are not flushed with fsync. A record torn by a crash mid-append is dropped, and the file truncated to the last whole record, the next time the journal is loaded.