BB.Parameter.Store.Dets (bb v0.15.3)

Copy Markdown View Source

DETS-backed parameter persistence.

Uses OTP's :dets module for disk-backed term storage. Parameters are persisted automatically on each change and restored on robot startup.

Options

  • :path - (required) Path to the DETS file
  • :auto_save - Auto-save interval in milliseconds. Defaults to :infinity (sync on each write)

Example

settings do
  parameter_store {BB.Parameter.Store.Dets, path: "/var/lib/robot/params.dets"}
end

File Location

For production deployments, use an absolute path in a persistent location.

Summary

Types

t()

@type t() :: %BB.Parameter.Store.Dets{path: String.t(), table: :dets.tab_name()}