using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using WX.CRM.Common; namespace Core.Web.Controllers { public class CacheController : Controller { [HttpGet] public JsonResult Clear() { var list = new List() { "cache_Parameter_getList", "cache_Company_getList", "cache_Company_Code", "cache_comapny_virtual", "cache_comapny_wework", "cache_LeftMemu_getList", "cache_wx_szzyproduct", "cache_wx_szzysubproduct", "cache_smsSubTypeList", "cache_smsClientList" }; foreach (var item in list) { CacheHelper.Remove(item); } return Json(new { code = 0, data = true, message = "缓存清除成功!" }, JsonRequestBehavior.AllowGet); } } }