From 795555eb2f1f2925dde18beae9fb4cfb9b5eb445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Mon, 15 Dec 2025 17:14:23 +0800 Subject: [PATCH] =?UTF-8?q?mongodb=E5=9F=BA=E7=A1=80=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E5=A2=9E=E5=8A=A0redis=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mongo/mongo.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mongo/mongo.go b/mongo/mongo.go index f1f9eb9..cc1f8bc 100644 --- a/mongo/mongo.go +++ b/mongo/mongo.go @@ -232,6 +232,11 @@ func cleanRedis(ctx context.Context, tenantId interface{}, collection string) (e return } } + oneKey := fmt.Sprintf(consts.One, tenantId, collection) + _, err = redis.RedisClient.Del(ctx, oneKey) + if err != nil { + return + } return }