3 releases

Uses old Rust 2015

0.1.2 May 2, 2019
0.1.1 May 2, 2019
0.1.0 Dec 3, 2017

#192 in Database implementations

44 downloads per month

MIT license

10KB
231 lines

KAFI

Build Status Build status Crates.io

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.8–1.4MB
~33K SLoC