https://github.com/qichengzx/bitcask
Bitcask is a log-structured fast KV store.
https://github.com/qichengzx/bitcask
bitcask bitcask-like key-value kv kvstore riak
Last synced: 6 months ago
JSON representation
Bitcask is a log-structured fast KV store.
- Host: GitHub
- URL: https://github.com/qichengzx/bitcask
- Owner: qichengzx
- License: mit
- Created: 2021-09-12T01:54:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T07:59:29.000Z (over 3 years ago)
- Last Synced: 2024-06-20T16:51:57.760Z (about 2 years ago)
- Topics: bitcask, bitcask-like, key-value, kv, kvstore, riak
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 15
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Bitcask
----
Bitcask is a log-structured fast KV store.
This project is an implementation of Bitcask written in Go.
[Bitcask intro here](https://riak.com/assets/bitcask-intro.pdf)
## Example
```go
package main
import (
"github.com/qichengzx/bitcask"
"log"
)
func main() {
d, err := bitcask.New("your/path/here")
if err != nil {
log.Fatal(err)
}
defer d.Close()
d.Put([]byte("bitcask"), []byte("bitcask is a log-structured fast KV store"))
v, _ := d.Get([]byte("bitcask"))
log.Println(string(v))
}
```