Skip to content

A simple, persistent, log based key-value store CLI written in Rust

Notifications You must be signed in to change notification settings

sdzharkov/rust_key_val_store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KvStore

KvStore is a log-based, persistant, key value store that is inspired by the Bitcask store architecture. The project was mainly built as a tool to learn Rust and log-based key value stores. This is my first personal project that has been written in Rust so apologies for any informalities / uncleanliness.

Installing

cargo build

Running from the CLI

cargo run -- get key       # Fetching a key from the store
cargo run -- set key value # Setting a value
cargo run -- rm key        # Remove a key

Importing the KvStore directly

let mut store = KvStore::open(env::current_dir()?)?;

store.set(key.to_string(), value.to_string())?;
store.get(key.to_string())?;
store.remove(key.to_string())

About

A simple, persistent, log based key-value store CLI written in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages