Skip to content
/ lsm-tree Public

implement lsm-tree based storage engine for study

License

Notifications You must be signed in to change notification settings

ISSuh/lsm-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

implement lsm-tree based storage engine for study

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published