Tari Storage

This crate is part of the Tari Cryptocurrency project.

An abstraction layer for persistent key-value storage. The Tari domain layer classes should only make use of these traits and objects and let the underlying implementations handle the details.

DataStore

Provides a general CRUD behaviour of Key-Value Store implementations. Datastore is agnostic of the underlying implementation.

LMDB

Currently, Tari supports LMDB for local disk persistence.

Use LMDBBuilder to open/create a new database.

```rust,ignore

use tari_storage::lmdb::LMDBBuilder;

let mut store = LMDBBuilder::new() .setpath("/tmp/") .setmapsize(500) .adddatabase("db1") .adddatabase("db2") .build() .unwrap(); ```