C# 缓存存储

   //获取存储的缓存

 var cacheObject = HttpContext.Current.Cache.Get(cacheKey);

//插入缓存设置过期时间为30分钟

  HttpContext.Current.Cache.Insert(cacheKey, result, null, DateTime.Now.AddMinutes(30), TimeSpan.Zero);

posted @ 2018-09-29 17:04  AlexLeeLi  阅读(206)  评论(0编辑  收藏  举报