Esempio n. 1
0
 /// <summary>
 /// 获取汇率信息,缓存一天时间
 /// </summary>
 /// <param name="pattern"></param>
 /// <returns></returns>
 public static decimal GetExchangeRates(int pattern)
 {
     return(RedisCacheHelper.AutoCache(ConstClass.RedisKey4MPrefix, ConstClass.RedisKey4ExchangeRates, () => DAL.GetExchangeRateByPattern(pattern), ConstClass.RedisCacheMinutesOneDay));
 }