fix(cache):修正缓存关联记录中记录查询数量的键类型。

This commit is contained in:
徐涛 2022-09-06 12:37:20 +08:00
parent 2ea8443409
commit f0c22db31f

2
cache/count.go vendored
View File

@ -25,7 +25,7 @@ func CacheCount(relationNames []string, entityName string, count int64, conditio
countKey := assembleCountKey(entityName, conditions...) countKey := assembleCountKey(entityName, conditions...)
err := Cache(countKey, lo.ToPtr(count), 5*time.Minute) err := Cache(countKey, lo.ToPtr(count), 5*time.Minute)
for _, relationName := range relationNames { for _, relationName := range relationNames {
CacheRelation(relationName, STORE_TYPE_HASH, countKey) CacheRelation(relationName, STORE_TYPE_KEY, countKey)
} }
return err return err
} }