From f0c22db31f954f2b4f776157210df09721c04cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 6 Sep 2022 12:37:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(cache):=E4=BF=AE=E6=AD=A3=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=85=B3=E8=81=94=E8=AE=B0=E5=BD=95=E4=B8=AD=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=95=B0=E9=87=8F=E7=9A=84=E9=94=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cache/count.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }