#hash-map #key-value #kv #disk #database

log_kv

A hashmap backed by a log of inserts. The log is read at initialisation to rebuild the hashmap

1 unstable release

Uses old Rust 2015

0.1.0 Jan 24, 2017

#85 in #kv

23 downloads per month

MIT license

7KB
107 lines

log_kv

Build Status crates.io

A LogKv backs a standard Rust HashMap with an log of inserts. The log is rebuilt on initialisation by iterating over it. The log is serialised using serde.

This makes for a cheap and cheerful persistent key-value store. It is similar in principal to a bitcask albeit without the merging and hint files.

Usage

See the examples in the doctests of src/lib.rs.

Dependencies

~1.5MB
~27K SLoC