Пример #1
0
 public void HandleDataDeleted(string dataPath)
 {
     Logger.Info($"删除配置:{dataPath}");
     ConfClient.Delete(PathUtils.PathToKey2(dataPath));
 }
Пример #2
0
 public void HandleDataChange(string dataPath, string data)
 {
     Logger.Info($"更新配置:{dataPath}, data: {data}");
     ConfClient.Set(PathUtils.PathToKey2(dataPath), data, DateTime.Now.AddMilliseconds(DefaultExpiryMils));
 }