/// <summary> /// 功能:改变计数器的值 /// </summary> /// <param name="key">计数器名称</param> /// <param name="value">改变量</param> /// <returns>当前值</returns> public static async Task <long?> ChangeCounterAsync(string key, long value) { string strKey = GlobalHelper.GetLowerString(key); try { return(await s_cacheStrategy.ChangeCounterAsync(strKey, value)); } catch (Exception ex) { SysLogHelper.LogMessage("CacheHelper.ChangeCounterAsync", ex.Message, LogLevel.Error, WriteLogType.FileLog); return(null); } }