In-Memory Caching with auto-regeneration on ASP.Net Core
问题 I guess there is not built-in way to achieve that: I have some cached data, that need to be always up to date (interval of few 10s of minutes). Its generation takes around 1-2 minutes, therefore it leads sometimes to timeout requests. For performances optimisation, I put it into memory cache, using Cache.GetOrCreateAsync , so I am sure to have fast access to the data during 40 minutes. However it still takes time when the cache expires. I would like to have a mechanism that auto-refreshes the