2 Star 0 Fork 0

yanghy / wui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cache.go 451 Bytes
一键复制 编辑 原始数据 按行查看 历史
yanghy 提交于 2021-09-17 20:53 . 增加点东西
package wcache
import "gitee.com/snxamdf/wui/wdb/wcache/internal"
var _cache cache
func init() {
if _cache == nil {
_cache = &internal.Cache{}
}
}
//简单的本地持久cache缓存
type cache interface {
Put(key string, value string)
Get(key string) string
Del(key string)
}
func Put(key string, value string) {
_cache.Put(key, value)
}
func Get(key string) string {
return _cache.Get(key)
}
func Del(key string) {
_cache.Del(key)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/snxamdf/wui.git
git@gitee.com:snxamdf/wui.git
snxamdf
wui
wui
4e24f74d83c0

搜索帮助

344bd9b3 5694891 D2dac590 5694891