public ActionResult Flush(string organisationId, string applicationId) { var cacheInvalidator = new CacheInvalidator(_cacheConfiguration); cacheInvalidator.SetCacheEngine(_cacheEngine); cacheInvalidator.Invalidate(new CacheInvalidationItem( CacheProfiles.Applications, CacheKeys.Applications.Key(organisationId, applicationId))); return(Content("Cache Flushed")); }
public HttpResponseMessage Delete(string orgId, string applicationId) { var cacheInvalidator = new CacheInvalidator(_cacheConfiguration) { Auditor = Auditor }; cacheInvalidator.SetCacheEngine(_cacheEngine); cacheInvalidator.Invalidate(new CacheInvalidationItem( CacheProfiles.Applications, CacheKeys.Applications.Key(orgId, applicationId))); return(Request.CreateResponse(HttpStatusCode.OK)); }