lsm-tree

module
v0.0.0-...-0559e4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: MIT

README

lsm-storage

implement persistence storage based lsm-tree

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL