代码拉取完成,页面将自动刷新
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)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。