1 Star 2 Fork 3

kristas/booting-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
def.go 388 Bytes
一键复制 编辑 原始数据 按行查看 历史
kristas 提交于 2021-04-23 18:42 . feat: add auto configure
package cache
import (
"gitee.com/kristas/booting-go/framework/core/bean"
)
type ICache interface {
bean.Bean
Conn() (ICache, error)
Set(key string, value interface{}) (string, error)
Del(key string) (int64, error)
Get(key string) (string, error)
}
type Configure struct {
Instance string `yaml:"instance"`
}
func (c *Configure) Prefix() string {
return "application.cache"
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/kristas/booting-go.git
git@gitee.com:kristas/booting-go.git
kristas
booting-go
booting-go
v1.3.0

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385