riptide v0.5.0-beta5 Riptide.Store.LMDB View Source

This store persists data to LMDB using a bridge built in Rust. LMDB is a is a fast, memory mapped key value store that is persisted to a single file. It's a great choice for many projects that need persistence but want to avoid the overhead of setting up a standalone database.

Configuration

This store has a dependency on the Rust toolchain which can be installed via rustup. Once installed, add the bridge_lmdb dependency to your mix.exs.

defp deps do
  [
    {:riptide, "~> 0.4.0"},
    {:bridge_lmdb, "~> 0.1.1"}
  ]
end

And then you can configure the store:

config :riptide,
  store: %{
    read: {Riptide.Store.LMDB, directory: "data"},
    write: {Riptide.Store.LMDB, directory: "data"},
  }

Options

  • :directory - directory where the database is stored (required)

Link to this section Summary

Link to this section Functions

Link to this function

iterate(env, path, opts)

View Source