1
0
mirror of https://github.com/taigrr/bitcask synced 2025-01-18 04:03:17 -08:00

Update README.md

This commit is contained in:
James Mills 2019-03-21 08:36:17 +10:00 committed by GitHub
parent 8bf169c96f
commit 7a427a237a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,13 @@
[![GoDoc](https://godoc.org/github.com/prologic/bitcask?status.svg)](https://godoc.org/github.com/prologic/bitcask) [![GoDoc](https://godoc.org/github.com/prologic/bitcask?status.svg)](https://godoc.org/github.com/prologic/bitcask)
[![Sourcegraph](https://sourcegraph.com/github.com/prologic/bitcask/-/badge.svg)](https://sourcegraph.com/github.com/prologic/bitcask?badge) [![Sourcegraph](https://sourcegraph.com/github.com/prologic/bitcask/-/badge.svg)](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")
} }
``` ```