Programmatically clear cache profile in asp.net core
问题 I have setup a cache profile in my asp.net core web api as follows: services.AddMvc(options => { // Cache profile for lookup data will expire every 15 minutes. options.CacheProfiles.Add("LookupData", new CacheProfile() { Duration = 15 }); }); I have used this attribute at the top of my "lookupsController", as the lists of information returned in each method won't change regularly (although cache automatically expires every 15 minutes). [ResponseCache(CacheProfileName = "LookupData")]