예제 #1
0
        public HttpResponseMessage ClearCache()
        {
            WebCache <AccessUsersModel> .Delete(string.Format(Constants.Cache.AccessUser, Session));

            WebCache <CommonsModel> .Delete(string.Format(Constants.Cache.DropDown, Session));

            WebCache <MenusModel> .Delete(string.Format(Constants.Cache.MenuUser, Session));

            return(new HttpResponseMessage(HttpStatusCode.OK));
        }
예제 #2
0
 public static bool Delete(string key)
 {
     WebCache.Delete(key);
     return(Provider.Delete(key));
 }