WardrikStore.EKV (wardrik_store v0.1.0-rc.1)

Copy Markdown

Keeps keys on disk with EKV, copied to each connected node.

store = WardrikStore.EKV.new(name: :my_app, data_dir: "/var/lib/my_app")
children = [{WardrikStore, store}]

Keys sit under wardrik_store/, so the store can share an EKV instance with other data.

Once a key is written with :if_vsn, keep writing it that way. EKV refuses an unconditional write over it.

Summary

Functions

Builds a store. Starts nothing.

Functions

new(opts)

@spec new(keyword()) :: WardrikStore.t()

Builds a store. Starts nothing.

Options

  • :name - required. The EKV instance's name.
  • :cluster_size - 1 unless set.

Other options, such as :data_dir, are passed to EKV when the store starts.