cache

来源:互联网 发布:mysql not like 编辑:程序博客网 时间:2024/04/30 09:54

 HttpContext.Current.Cache.Insert("filters", dta, null, DateTime.Now.AddMinutes(time), TimeSpan.Zero)

HttpContext.Current.Cache.Add(
            "where",
            FavHelper.GetSeach(this.ddlSeach, this.txtSeach),
            null,
            DateTime.MaxValue,
            new TimeSpan(0, 0, 1, 0),
            CacheItemPriority.High,
            null);

if (HttpContext.Current.Cache["where"] != null)
        {
            ...

        } 

;

原创粉丝点击