Skip to content

guojje/kv-storage-embedded-db

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disk Based Key-Value storage (Experimental)

Features

  • writes are constant time and reads are ln(n) time
  • uses WAL for crash recovery
  • key is a string and value is JSONObject
  • data is sorted by key
  • operations available : put,get,remove (update can done using put)
  • put accepts optional time to live value

How to use

BucketDB bucketDB=BucketDB.getInstance(dbPath);

JSONObject jsonObject= new JSONObject();
jsonObject.put("name","icircuit");
jsonObject.put("address","chennai");
bucketDB.put("key1",jsonObject);
bucketDB.get("key2");
bucketDB.remove("key2");

How to run tests

mvn test

About

Disk based Key-Value storage for JVM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%