Esempio 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"));
        }
Esempio 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));
        }