FastCask-DB is a naive implementation of Bitcask paper in pure C++.
- Clone the repository using the following command
git clone https://github.com/helios2003/FastCask-DB.git
- Change directory into the cloned folder and insert the following commands
./run.sh
- You will enter the terminal for FastCask DB where you can type the commands
- Press
Ctrl + Cfor a forceful closure or typeEXITfor a graceful closure. - Run
make cleanto remove the object files created.
- The performance has been measured using Catch2. Follow the installation steps as given here.
- After downloading and configuring Catch2 write the following command
cd benchmark
./test.sh
SET <key> <value> <expiry_time: optional>: Sets the key and corresponding value with an optional expiry time.GET <key>: Gets the value associated with the key.DELETE <key>: Deletes the key and the associated valuesLIST: Lists all the keys.SYNC: Restores the database if there was a forceful exit done earlier (i.e. will not work if you exited from the DB shell using theEXITcommand).EXIT: Graceful closure deleting all the data stored in memory and on the disk.