private void SetCache(string CacheKey, object objObject, DateTime dt)
        {
            System.Web.Caching.Cache objCache = HttpRuntime.Cache;
            objCache.Insert(CacheKey, objObject, null, dt, TimeSpan.Zero, System.Web.Caching.CacheItemPriority.NotRemovable, null);
        }

        /// <summary>
        /// 获取数据缓存
        /// </summary>
        /// <param name="CacheKey"></param>
        private object GetCache(string CacheKey)
        {
            System.Web.Caching.Cache objCache = HttpRuntime.Cache;
            return objCache[CacheKey];
        }

 

相关文章:

  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-02-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-15
  • 2021-11-11
  • 2022-12-23
  • 2021-08-17
  • 2021-05-17
  • 2022-12-23
相关资源
相似解决方案