/// <summary> /// 获取所有功能权限项,缓存处理 /// </summary> /// <returns></returns> public DataTable GetPowerPermission() { System.Web.Caching.Cache cache = HttpContext.Current.Cache; DataTable powerPermissions = cache["tz888_Member_PowerPermissions_Cache"] as DataTable; if (powerPermissions == null) { powerPermissions = dal.GetPowerPermission(); if (powerPermissions != null) { cache.Insert("tz888_Member_PowerPermissions_Cache", powerPermissions, null, DateTime.Now.AddMinutes(30), TimeSpan.Zero); } } return(powerPermissions); }