DrJackilD / kvs

Implementation of Key-Value storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Key-value storage

This repository has implementation of Practical Networking Application by PingCap

Roadmap

Usage

USAGE:
    kvs [OPTIONS] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --db <db>    path to database file [default: kvs.db]

SUBCOMMANDS:
    get      get key from storage
    help     Prints this message or the help of the given subcommand(s)
    rm       remove key-value pair from storage
    set      set key with given value
    shell    start KVS shell

Example

Command-line client

$ kvs set a 3
$ kvs set b 5
$ kvs get a
3
$ kvs set a 55
$ kvs get a
55
$ kvs get c
Key not found

Shell

$ kvs shell
>>> get a
55
>>> set c 25
>>> get c
25
>>> exit
Bye!

About

Implementation of Key-Value storage


Languages

Language:Rust 100.0%