Explorer is a key-value storage system with client and server.
Explorer use B+ tree as storage engine. Client and server communicate using the TCP protocol.
make
First, run the server program :
./exp-srv
Then, run the client program :
./exp-cli
Insert a key-value :
> set zx 1
Search a key :
> get zx
Update a key :
> update zx 2
Delete a key :
> del zx
Display the current status of the storage system :
> stat
Look for help :
> h
Quit from client :
> q
By default, the key type is string and value type is int.
All key-values store in one file named test.db, you can change the file name or file position in source file test/kvstore/exp-server/exp-server.cc.