#key-value-store #thread-safe #in-memory

nightly memdb

Thread-safe in-memory key-value store

2 releases (1 stable)

1.0.0 May 27, 2019
0.1.0 Aug 14, 2018

#75 in #in-memory

MIT/Apache

11KB

memdb

crates.io version build status downloads docs.rs docs

Thread-safe in-memory key-value store. Ideal for development and prototyping. Does not persist to disk.

Usage

let mut db = Memdb::open().await?;
db.set("beep", "boop").await?;
let val = db.get("beep").await?;
assert_eq!(val, Some("boop".as_bytes().to_owned()));
Ok(())

Installation

$ cargo add memdb

License

MIT OR Apache-2.0


lib.rs:

Thread-safe in-memory key-value store. Ideal for development and prototyping. Does not persist to disk.

Examples

let mut db = memdb::Memdb::open().await?;
db.set("beep", "boop").await?;
let val = db.get("beep").await?;
assert_eq!(val, Some("boop".as_bytes().to_owned()));

Dependencies

~1.5MB
~20K SLoC