The default Octoroom.Store: an ETS table, snapshotted to a file so it
survives a node restarting in place. Enough for one node; a deploy that
replaces the machine needs a store outside it.
Options:
:name: the table's name (defaultOctoroom.Store).:path: the snapshot file. Defaults tooctoroom-<node>.storein the system temp directory;nilkeeps the store in memory only.:snapshot_ms: how long writes are batched before a snapshot (default 50).
Reads and writes go straight to ETS. A write schedules a snapshot, which is written to a temporary file and renamed, so a crash mid-write leaves the previous snapshot.
Summary
Functions
Returns a specification to start this module under a supervisor.
Writes the snapshot now. Returns once it's on disk.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Writes the snapshot now. Returns once it's on disk.