1 Star 0 Fork 0

h79/goutils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
client.go 401 Bytes
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2022-10-27 13:42 . redis
package redis
import (
"github.com/go-redis/redis/v8"
)
type Redis interface {
Rds() *redis.Client
Sentinel() *redis.SentinelClient
Cluster() *redis.ClusterClient
Name() string
}
type Client interface {
Get(name string) (Redis, error)
Close(name string) error
CloseAll()
Select(name string) //选哪个redis
SelectDB(name string, index int) error //选哪个redis db
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/h79/goutils.git
git@gitee.com:h79/goutils.git
h79
goutils
goutils
v1.8.25

搜索帮助

A270a887 8829481 3d7a4017 8829481