3 releases
Uses old Rust 2015
0.1.2 | May 2, 2019 |
---|---|
0.1.1 | May 2, 2019 |
0.1.0 | Dec 3, 2017 |
#293 in Database implementations
10KB
231 lines
KAFI
Super simple persistent key value store library for Rust.
Install
[dependencies]
kafi = "0.1.2"
Usage
extern crate kafi;
use kafi::Store;
let mut store:Store<String, String> = Store::open("kafi.db").unwrap();
store.insert("satu", "111".to_string());
assert_eq!(store.exists("satu"), true);
store.flush().unwrap(); // <-- call flush to persist into disk
assert_eq!(store.get("satu"), Some(&"111".to_string()));
assert_eq!(store.get("lima"), None);
[] Robin Sy.
Dependencies
~0.7–1.3MB
~29K SLoC