From dd2962a80e7bf7bbba8de5cfdd87ed434f8be124 Mon Sep 17 00:00:00 2001 From: ciniao <4041990@qq.com> Date: Mon, 25 Dec 2023 14:32:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86redis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/public/gud.ts | 6 ++++++ src/setRedis.ts | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/public/gud.ts b/src/public/gud.ts index 8ba809b..c4a4dda 100644 --- a/src/public/gud.ts +++ b/src/public/gud.ts @@ -23,6 +23,12 @@ export async function clearGud(uid) { console.log('清空tanxian Redis',uid); G.redis.del("tanxian",uid); } + try{ + console.log('清空friend:list Redis',uid); + G.redis.hDel("friend:list",uid); + }catch(e){ + + } }; /** diff --git a/src/setRedis.ts b/src/setRedis.ts index b27ee0c..6e6b155 100644 --- a/src/setRedis.ts +++ b/src/setRedis.ts @@ -77,8 +77,9 @@ async function clearRedis() { G.redis.fromatKey('hero'), G.redis.fromatKey('equip'), G.redis.fromatKey('shiwu'), - //G.redis.fromatKey('gbtx'), - //G.redis.fromatKey('dxlt'), + G.redis.fromatKey('tanxian'), + G.redis.fromatKey('gbtx'), + G.redis.fromatKey('dxlt'), ]) }