Skip to content

skywalkerlee/bitcask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example

package main

import (
	"github.com/skywalkerlee/bitcask"
)

func main() {
	bc := bitcask.NewBC()
	bc.Open("test")
	defer bc.Close()
	bc.Put([]byte("foo1"), []byte("bar1"))
	bc.Put([]byte("foo2"), []byte("bar2"))
	bc.Put([]byte("foo3"), []byte("bar3"))
	println(string(bc.Get([]byte("foo1"))))
	println(string(bc.Get([]byte("foo2"))))
	println(string(bc.Get([]byte("foo3"))))
}

$ go run main.go
bar1
bar2
bar3

TODO

  • merge operation
  • checksum compare

About

bitcask written in golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages