This is a simple key/value store based off of pingcap's project
Persistent storage with Log-Structured File I/O
Command Serialization using Serde
In-memory key-value index with disk backed values
- Maintained an in-memory index that maps keys to log pointers so that value retrieval is efficient and memory usage is minimized
Log Compaction
- Once a threshold is reached, log compaction will remove stale records and reclaim disk space
Stateful and Stateless Modes
- Works both as a stateful type for library use and stateless CLI context
cargo build -- releaseThe compiled binary will be at target/release/kvs
Set a value:
./target/release/kvs set newkey newvalueGet a value:
./target/release/kvs get newkeyRemove a value:
./target/release/kvs remove newkeycargo test