缓存测试成功

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
+2 -3
View File
@@ -23,7 +23,6 @@ type CacheDb struct {
TimeOut int64
DbSet bool
SessionSet bool
Time int64
Db HoTimeDBInterface
*Error
ContextBase
@@ -152,10 +151,10 @@ func (that *CacheDb) Cache(key string, data ...interface{}) *Obj {
}
if len(data) == 1 {
if that.Time == 0 {
if that.TimeOut == 0 {
//that.Time = Config.GetInt64("cacheLongTime")
}
tim += that.Time
tim += that.TimeOut
}
if len(data) == 2 {
that.SetError(nil)