tari_storage

Crates.iotari_storage
lib.rstari_storage
version1.0.0-rc.5
sourcesrc
created_at2019-09-02 08:11:59.259586
updated_at2024-02-09 11:10:11.325215
descriptionKey-Value store API for the Tari project
homepagehttps://tari.com
repositoryhttps://github.com/tari-project/tari
max_upload_size
id161533
size144,252
SW van Heerden (SWvheerden)

documentation

README

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.

# use tari_storage::lmdb::LMDBBuilder;
let mut store = LMDBBuilder::new()
    .set_path("/tmp/")
    .set_mapsize(500)
    .add_database("db1")
    .add_database("db2")
    .build()
    .unwrap();
Commit count: 7089

cargo fmt