/// <summary> /// 保存配置类实例 /// </summary> /// <param name="configinfo"></param> /// <returns></returns> public static bool SaveConfig(RedisConfigInfo configinfo) { RedisConfigFileManager rcfm = new RedisConfigFileManager(); RedisConfigFileManager.ConfigInfo = configinfo; return(rcfm.SaveConfig()); }
static RedisConfigs() { m_configinfo = RedisConfigFileManager.LoadConfig(); redisConfigTimer.AutoReset = true; redisConfigTimer.Enabled = true; redisConfigTimer.Elapsed += new System.Timers.ElapsedEventHandler(Timer_Elapsed); redisConfigTimer.Start(); }
/// <summary> /// 保存配置类实例 /// </summary> /// <param name="configinfo"></param> /// <returns></returns> public static bool SaveConfig(RedisConfigInfo configinfo) { RedisConfigFileManager rcfm = new RedisConfigFileManager(); RedisConfigFileManager.ConfigInfo = configinfo; return rcfm.SaveConfig(); }
/// <summary> /// 重设配置类实例 /// </summary> public static void ResetConfig() { m_configinfo = RedisConfigFileManager.LoadConfig(); }