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)); }
public static bool Delete(string key) { WebCache.Delete(key); return(Provider.Delete(key)); }