1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        GodownGo 開發(fā)的?分布式 Key-Value 數(shù)據(jù)庫(kù)

        聯(lián)合創(chuàng)作 · 2023-10-01 01:38

        Godown 是一個(gè) Go 語(yǔ)言開發(fā)的簡(jiǎn)單、高效分布式 Key-Value 數(shù)據(jù)庫(kù),靈感來源 Redis,基于 Raft 協(xié)議,支持 String, Bitmap, Map, List。

        演示視頻

        使用示例

        通過 Go 客戶端進(jìn)行連接

        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())
        	}
        }
        瀏覽 24
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            东京热免费视频 | 操鼻视频 | 国产精品久久久久久久久久齐齐 | 人人摸人人操人人射 | 艹的视频 | 大屁股喷水视频在线观看 | 美女扒开腿直让男人桶 | 中文字幕一区二区三区西施Av | 美女131爽爽爽 | 久久久久国产精品夜夜夜夜夜 |