Godown - Go 开发的分布式 Key-Value 数据库
MIT
跨平台
Google Go
软件简介
Godown 是一个 Go 语言开发的简单、高效分布式 Key-Value 数据库,灵感来源 Redis,基于 Raft 协议,支持 String,
Bitmap, Map, List。
演示视频
使用示例
通过 Go 客户端进行连接
package main
import ( "fmt"
"github.com/namreg/godown/client")
func main() {
c, err := client.New("127.0.0.1:4000")
if err != nil {
panic(err)
}
defer c.Close()
res := c.Get("key")
if res.Err() != nil {
panic(res.Err())
}
if res.IsNil() {
fmt.Print("key does not exist")
} else {
fmt.Println(res.Int64())
}
}