Skip to content

hamkee-dev-group/ckvstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ckvstore (v1)

Small embeddable key/value store library in pure C (C11) for Linux.

Build

make
make test

CLI

./ckvcli /tmp/store.log put key value
./ckvcli /tmp/store.log get key
./ckvcli /tmp/store.log del key
./ckvcli /tmp/store.log compact

Keys/values via CLI are treated as UTF-8 strings; the library API treats them as binary blobs.

Notes

  • Single-file append-only log with PUT/DEL records
  • In-memory hash index (open addressing)
  • Crash recovery via log scan (trailing partial/corrupt record tolerated)
  • Explicit compaction via ckv_compact()

About

Small embeddable key/value store library in pure C (C11) for Linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors