From 7779e07bd84d081a8f14ef976397dc4c19b0e994 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期二, 20 二月 2024 14:02:33 +0800 Subject: [PATCH] 库中新增更新缓存 --- main.go | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/main.go b/main.go index af1f738..0e2691d 100644 --- a/main.go +++ b/main.go @@ -130,6 +130,8 @@ } else if err = proto.Unmarshal(msg, &compareEvent); err == nil { if compareEvent.EventType == protomsg.CompareEventType_ReInitCache { //鍔犲叆闆嗙兢鍚庨噸鏂板垵濮嬪寲缂撳瓨 cache.ReInitDbTablePersonsCache() + } else if compareEvent.EventType == protomsg.CompareEventType_UpdateCache { //搴撲腑鏂板鏇存柊缂撳瓨 + cache.UpdateDbPersonsCache() } } else { logger.Debug("json unmarshal error") -- Gitblit v1.8.0