fix(cache):修正缓存关联记录中记录查询数量的键类型。
This commit is contained in:
parent
2ea8443409
commit
f0c22db31f
2
cache/count.go
vendored
2
cache/count.go
vendored
|
@ -25,7 +25,7 @@ func CacheCount(relationNames []string, entityName string, count int64, conditio
|
|||
countKey := assembleCountKey(entityName, conditions...)
|
||||
err := Cache(countKey, lo.ToPtr(count), 5*time.Minute)
|
||||
for _, relationName := range relationNames {
|
||||
CacheRelation(relationName, STORE_TYPE_HASH, countKey)
|
||||
CacheRelation(relationName, STORE_TYPE_KEY, countKey)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user