Crates.io | memdb |
lib.rs | memdb |
version | 1.0.0 |
source | src |
created_at | 2018-08-14 23:42:28.820771 |
updated_at | 2019-05-27 13:48:19.666266 |
description | Thread-safe in-memory key-value store |
homepage | |
repository | https://github.com/rust-net-web/memdb |
max_upload_size | |
id | 79486 |
size | 27,604 |
Thread-safe in-memory key-value store. Ideal for development and prototyping. Does not persist to disk.
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(())
$ cargo add memdb
MIT OR Apache-2.0