Common/CacheProvider.cs

(开头部分) 8KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;



namespace WMPT.Common
{
    public class CacheProvider : ICacheProvider
    {

        //private IList<ETogoInfo> _togo_list;

        //private IList<EFoodInfo> _togofood_list;

        //private MetaInfo _meta_info;

        //private DataTable _building_datatable;            //标志建筑物

        //private Dictionary<int, ETogoInfo> _togoCache;    //点餐商家缓存

        //private Dictionary<int, int> _togoCacheUsage;    //点餐商家缓存命中个数 保存某一个商家的访问次数

        ///// <summary>
        ///// 初始化
        ///// </summary>
        //public void Init()
        //{
        //    _togo_list = new List<ETogoInfo>(8);

        //    _togofood_list = new List<EFoodInfo>(8);

        //    _meta_info = new MetaInfo();

        //    _building_datatable = new DataTable("EBuildingInfo");

        //    // Initialize togo item cache and useage
        //    _togoCache = new Dictionary<int, ETogoInfo>(200);

        //    _togoCacheUsage = new Dictionary<int, int>(200);
        //}

        ///// <summary>
        ///// 获取seo优化缓存
        ///// </summary>
        //public MetaInfo GetMetaInfo()
        //{
        //    MetaInfo value = new MetaInfo();

        //    lock (this)
        //    {
        //        value = _meta_info;
        //    }
        //    return value;
        //}

        ///// <summary>
后面还有 260 行代码,购买后查看完整代码

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

AI 解读 AI

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

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