mirror of
https://github.com/taigrr/bitcask
synced 2025-01-18 04:03:17 -08:00
Update README.md
This commit is contained in:
parent
8bf169c96f
commit
7a427a237a
17
README.md
17
README.md
@ -6,13 +6,13 @@
|
|||||||
[](https://godoc.org/github.com/prologic/bitcask)
|
[](https://godoc.org/github.com/prologic/bitcask)
|
||||||
[](https://sourcegraph.com/github.com/prologic/bitcask?badge)
|
[](https://sourcegraph.com/github.com/prologic/bitcask?badge)
|
||||||
|
|
||||||
A high performance Key/Value store written in Go with a predictable read/write performance and high throughput. Uses a [Bitcask](https://en.wikipedia.org/wiki/Bitcask) on-disk layout (LSM+WAL) similar to [Riak](https://riak.com/).
|
A high performance Key/Value store written in [Go](https://golang.org) with a predictable read/write performance and high throughput. Uses a [Bitcask](https://en.wikipedia.org/wiki/Bitcask) on-disk layout (LSM+WAL) similar to [Riak](https://riak.com/).
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* Embeddable
|
* Embeddable (`import "github.com/prologic/bitcask"`)
|
||||||
* Builtin CLI
|
* Builtin CLI (`bitcask`)
|
||||||
* Builtin Redis-compatible server
|
* Builtin Redis-compatible server (`bitcaskd`)
|
||||||
* Predictable read/write performance
|
* Predictable read/write performance
|
||||||
* Low latecny
|
* Low latecny
|
||||||
* High throughput (See: [Performance](README.md#Performance)
|
* High throughput (See: [Performance](README.md#Performance)
|
||||||
@ -34,16 +34,13 @@ $ go get github.com/prologic/bitcask
|
|||||||
```#!go
|
```#!go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import "github.com/prologic/bitcask"
|
||||||
"log"
|
|
||||||
|
|
||||||
"github.com/prologic/bitcask"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
db, _ := bitcask.Open("/tmp/db")
|
db, _ := bitcask.Open("/tmp/db")
|
||||||
|
defer db.Close()
|
||||||
db.Set("Hello", []byte("World"))
|
db.Set("Hello", []byte("World"))
|
||||||
db.Close()
|
val, _ := db.Get("hello")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user