Skip to content

jdk2588/kvdb

Repository files navigation

kvdb

A key - value DB implementation

Build the program

Linux

make build

Mac

make build_mac

Tests

make test

Run the program

./kvdb

For now it supports the following commands.

SET key1 value1
GET key1
DEL key1
SET counter 0
INCR counter
GET counter
INCRBY counter 10

The first argument is case-sensitive. Pass the argument as required by the command, there is no check in number of arguments and may raise a panic.

Use exit to terminate the program.

TODO:

  • Currently only one client can connect. It should move to a centralized server which needs to have thread safe write/update operations.

About

A key - value DB implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published