From 6dd16d2b6764632d7cc28d5259f05b98f3e49556 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 5 Jun 2023 15:28:36 +0800 Subject: [PATCH] fix cache key --- pkg/common/constant/constant.go | 2 +- pkg/common/db/cache/black.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/common/constant/constant.go b/pkg/common/constant/constant.go index 54ab18cd3..a727c56d9 100644 --- a/pkg/common/constant/constant.go +++ b/pkg/common/constant/constant.go @@ -93,7 +93,7 @@ const ( ClearConversationNotification = 2101 DeleteMsgsNotification = 2102 - NotificationEnd = 3000 + NotificationEnd = 5000 //status MsgNormal = 1 diff --git a/pkg/common/db/cache/black.go b/pkg/common/db/cache/black.go index 2ccd61367..cdd7fa9c1 100644 --- a/pkg/common/db/cache/black.go +++ b/pkg/common/db/cache/black.go @@ -62,6 +62,6 @@ func (b *BlackCacheRedis) GetBlackIDs(ctx context.Context, userID string) (black func (b *BlackCacheRedis) DelBlackIDs(ctx context.Context, userID string) BlackCache { cache := b.NewCache() - cache.AddKeys(userID) + cache.AddKeys(b.getBlackIDsKey(userID)) return cache }