enhance: use in-memory cache for soft field name and type (#3420)

This commit is contained in:
Yuyang Zhang(helloqiu)
2024-04-01 19:22:23 +08:00
committed by GitHub
parent dcf1f19ff7
commit 00ba053ce6

View File

@ -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)
}