mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
enhance: use in-memory cache for soft field name and type (#3420)
This commit is contained in:
committed by
GitHub
parent
dcf1f19ff7
commit
00ba053ce6
@ -214,7 +214,7 @@ func (m *softTimeMaintainer) getSoftFieldNameAndType(
|
||||
return
|
||||
}
|
||||
)
|
||||
result, err := m.db.GetCache().GetOrSetFunc(ctx, cacheKey, cacheFunc, cacheDuration)
|
||||
result, err := gcache.GetOrSetFunc(ctx, cacheKey, cacheFunc, cacheDuration)
|
||||
if err != nil {
|
||||
intlog.Error(ctx, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user