module
Version:
v0.0.0-...-0559e4b
Opens a new window with list of versions in this module.
Published: Aug 9, 2023
License: MIT
Opens a new window with license information.
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
#ToDo
- unittest
- remove flag on entry
- implement WAL(write ahead logging)
Directories
¶
Click to show internal directories.
Click to hide internal directories.