Dsxir. OptimizerSession. Store. File
(dsxir v0.3.0)
Copy Markdown
File-backed Store with atomic writes (temp file plus rename).
Options
:dir(required) - directory holding<session_id>.<ext>files. The directory is created on first write.:format(:binarydefault,:jsonfor debugging) - encoding for the checkpoint body.:binaryis:erlang.term_to_binary/2 [:deterministic];:jsonisJSON.encode!/1withsampler_blobBase64-wrapped.
Format guarantees:
:binary- full round-trip fidelity for any Elixir term, suitable for resume.:json- mostly human-readable, butoptimizer_optsis opaquely wrapped as a Base64-encoded:erlang.term_to_binary/2blob so the checkpoint can still resume sessions whose options contain non-JSON terms (tuples, atoms-as-values, function refs, etc.).