Skip to content

A persistent high performance key-value database as a service

License

Notifications You must be signed in to change notification settings

adarsh1021/kv-serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KVServe

Go GitHub

KVServe is a persistent key-value database as a service based on LevelDB.

Features

  • Uses LevelDB as the backend for the key-value database.
  • Fast and simple HTTP API.
  • Read/write across multiple databases without any performance impact.

Usage

To build:

go build -o kv-serve

Options:

  • --data-dir (-d)
    The path to store LevelDB files.
  • --max-db-cache-entries (-c)
    The maximum number of open db pointers at a time.
  • --port (-p)
    The port to run the HTTP server on.

Create a new key-value database my-db:

curl -X POST http://localhost:9090/db/my-db
my-db created

Set a new key hello in my-db:

curl -d "world" -X POST http://localhost:9090/db/my-db/hello
ok

Get the value of hello from my-db:

curl -X GET http://localhost:9090/db/my-db/hello
world

Releases

No releases published

Packages

No packages published