An incredibly stupid KV lib.
- main feature is KISS and you can inspect on-disk data
- utilizes the filesystem heavily, perhaps slow sometimes
- kv-dir is file locked, protects against accidental double starts
- caching on/off, pops randomly on startup to ~100%
- it will stop if a key is broken
- eviction is totally random when it reaches 75%
- eviction cleans all when it reaches 100%
Example
func main()
store, release, err := dumb.New(dumb.Config{
Path: "/my/storage/path",
CacheSize: 3_000_000_000, // in-memory
Caching: true,
})
defer release()
}