From 07eea46970759aba106f3db3f4bc24c518ab41de Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期二, 20 二月 2024 14:39:04 +0800
Subject: [PATCH] 库中新增更新单条缓存

---
 main.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/main.go b/main.go
index 0e2691d..f8800b5 100644
--- a/main.go
+++ b/main.go
@@ -131,7 +131,7 @@
 					if compareEvent.EventType == protomsg.CompareEventType_ReInitCache { //鍔犲叆闆嗙兢鍚庨噸鏂板垵濮嬪寲缂撳瓨
 						cache.ReInitDbTablePersonsCache()
 					} else if compareEvent.EventType == protomsg.CompareEventType_UpdateCache { //搴撲腑鏂板鏇存柊缂撳瓨
-						cache.UpdateDbPersonsCache()
+						cache.UpdateDbPersonsCacheById(string(compareEvent.Payload))
 					}
 				} else {
 					logger.Debug("json unmarshal error")

--
Gitblit v1.8.0