Skip to content

tonievictor/bitcask.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitcask

A simple key-value store using the Bitcask log format for persistence.

Installation

  • Clone the repository and move into the directory
git clone https://github.com/tonievictor/bitcask.rs.git bitcask

Usage

You can interact with the Bitcask store through a simple CLI.

cargo run <logdirectory>

is a path to a directory where log files will be stored, make sure to create this directory before starting the cli.

Commands

  • put <key> <value>: Stores a key-value pair.
  • get <key>: Retrieves the value associated with a key.
  • remove <key>: Removes a key (not yet implemented).
  • list keys: List all keys in the datastore.
  • exit: Sync the datastore and exit the program.

Example

$ cargo run ./data
> put mykey myvalue
Successfully set key value pair

> get mykey
myvalue

About

disk-based, log-structured, key-value datastore.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages