implement lsm-tree based storage engine
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)
#ToDo
- unittest
- remove flag on entry
- implement WAL(write ahead logging)