rd:Redis(群集)驱动程序

时间:2021-02-03 11:32:34
【文件属性】:
文件名称:rd:Redis(群集)驱动程序
文件大小:10KB
文件格式:ZIP
更新时间:2021-02-03 11:32:34
go redis golang simple nosql RD Redis(群集)驱动程序 简单用法 package main import ( "github.com/beiping96/rd" ) func main () { cfg := rd. Config { IsCluster : true , Address : "127.0.0.1:6379" , } cli , err := rd . NewClient ( cfg ) if err != nil { // handle err } defer cli . Close () _ , err := cli . DoString ( "GET" , "not_exist_key" ) if err == cli . ErrNil () { // key not exist } else if err != nil { // handle err } } 带实例
【文件预览】:
rd-master
----.gitignore(211B)
----README.md(934B)
----.github()
--------workflows()
----LICENSE(11KB)
----go.mod(267B)
----rd.go(3KB)
----redis.go(3KB)
----example()
--------redis.go(1023B)
----.travis.yml(270B)
----redis-cluster.go(2KB)

网友评论