Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tom--bo/tx_kv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tx_kv

Single version, S2PL KVS

How to build

$ cd /path/to/tx_kv
$ mkdir build
$ cd build
$ cmake ..  # This fetch grpc codes via CMake's FetchContent
$ make -j 4

How to run

start kv server

$ cd /path/to/tx_kv/build
$ ./server  
Server listening on 0.0.0.0:8000

start cli-client

$ cd /path/to/tx_kv/build
$ ./cli  
connection_id: 1
cmd> help
[command list]
 begin
 commit
 rolback
 get {key}
 put {key} {val}
 del {key}
 exit (close connection)
 help

cmd> begin
cmd> put 1 100
cmd> commit

cmd> begin
cmd> get 1
100
cmd> commit

cmd> get 1 # auto-commit mode
100

cmd> ^C

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published