diff --git a/cache/count.go b/cache/count.go index 7b6d9d3..c81a941 100644 --- a/cache/count.go +++ b/cache/count.go @@ -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 }