缓存测试成功

This commit is contained in:
hoteas
2021-05-28 23:48:33 +08:00
parent 1101937028
commit 339302956a
6 changed files with 40 additions and 35 deletions
+1
View File
@@ -180,6 +180,7 @@ func (that *Application) SetCache() {
cacheIns := HoTimeCache{}
cacheIns.Init(that.Config.GetMap("cache"), HoTimeDBInterface(&that.Db), &that.Error)
that.HoTimeCache = &cacheIns
that.Db.HoTimeCache = &cacheIns
}
// SetConfig 设置配置文件路径全路径或者相对路径