title: Update MemoryCache web.api when saving data in database using Entity Framework core
body: <p>I have cached some data from the database in my web.api core, and when I am updating some of the tables that has been cached, I would like to update my cache in the api. Right now I am doing this by calling a method everywhere if it is needed, when I am doing "SaveChanges". But Can it somehow be done easier ? Maybe subscribe to an event, or overwrite "saveChanges" in api ?</p>
  
  <p>Thanks very much in advance :-)</p>