From 9b64e2e0458e04a0b5f1de6157815e44010d7180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <927625802@qq.com> Date: Wed, 8 Dec 2021 22:41:30 +0800 Subject: [PATCH] :bug: fix cache bug --- drivers/base/cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/cache.go b/drivers/base/cache.go index 6deeb3be..4d72463b 100644 --- a/drivers/base/cache.go +++ b/drivers/base/cache.go @@ -17,9 +17,9 @@ func SetCache(path string, obj interface{}, account *model.Account) error { } func GetCache(path string, account *model.Account) (interface{}, error) { - return conf.Cache.Get(conf.Ctx, fmt.Sprintf("%s%s", KeyCache(path, account))) + return conf.Cache.Get(conf.Ctx, fmt.Sprintf("%s", KeyCache(path, account))) } func DeleteCache(path string, account *model.Account) error { - return conf.Cache.Delete(conf.Ctx, fmt.Sprintf("%s%s", KeyCache(path, account))) + return conf.Cache.Delete(conf.Ctx, fmt.Sprintf("%s", KeyCache(path, account))) }