SQLServerDAL/CacheHelper.cs

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*********************************************************************
 .
 
 * Function : 
 *  at 2014-08-12 21:08:44.
  
*********************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;
using WMPT.Cache;
using System.Net;
using System.IO;

namespace WMPT.SQLServerDAL
{
    /// <summary>
    /// 缓存类
    /// </summary>
    public class CacheHelper
    {
        /// <summary>
        /// 缓存充值优惠
        /// </summary>
        /// <returns></returns>
        public static IList<ordersourcesInfo> GetOrderSourceList()
        {
            ordersources dal = new ordersources();
            IList<ordersourcesInfo> list = (IList<ordersourcesInfo>)EasyEatCache.GetCacheService().RetrieveObject("/OrderSourceList");
            if (list == null || list.Count == 0)
            {
                list = dal.GetsubList(0);
                EasyEatCache.GetCacheService().AddObject("/OrderSourceList", list);
            }
            return list;
        }

        /// <summary>
        /// 清除缓存缓存充值优惠
        /// </summary>
        public static void OrderSourceListClear()
        {
            EasyEatCache.GetCacheService().RemoveObject("/OrderSourceList");
            CacheHelper.UpdateCacheByKey("OrderSourceList");
        }


        /// <summary>
        /// 缓存支付方式
        /// </summary>
        /// <returns></returns>
        public static IList<StateConfigInfo> GetPayModelList()
        {
            return GetOrderBaseData().Where(a => a.Parentid == Constant.PaymentMethodPrrentID).ToList();
后面还有 265 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。