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")