Categorygithub.com/ISSuh/lsm-tree
repository
0.0.0-20240305130007-68c59ad67237
Repository: https://github.com/issuh/lsm-tree.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

lsm-engine

implement lsm-tree based storage engine

Example

go get github.com/ISSuh/lsm-tree

import github.com/ISSuh/lsm-tree/storage

storageOption := storage.NewOption()
storageOption.Path = "./temp"

storage: storage.NewStorage(storageOption),

key := "user1"
value := []byte("test")
storage.Set(key, value)


getValue := handler.Get(key)
if getValue == nil {
  return error
}

storage.Remove(key)

Data Layout

data_layout

#ToDo

  • unittest
  • remove flag on entry
  • implement WAL(write ahead logging)