示例#1
0
文件: CommonBll.cs 项目: radtek/Shop
 /// <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));
 }