Exemplo n.º 1
0
        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"));
        }
Exemplo n.º 2
0
        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));
        }