Say I have a C# MVC5 Website with multiple MemoryCaches for various different objects, each with a refresh time of about 2 hours.
Say I want to have a progress load bar so that when someone hits the webpage the first time (or the nth time during the 1-2 minutes it takes for all the data to cache) -- I need to display the current MemoryCache loading progress, even if it's just something as fundamental as a Boolean (e.g. False -> display "Data loads 1-2 minutes from cache first session of the morning") to differentiate the screen messaging from just normal latency later in the day.
So to generalize my question: Is there a way to inspect the progress of a long-loading MemoryCache that doesn't wait for it to complete? (Ideally similar messaging would occur again at the 2-hour mark later in the day...)
CacheItemto the MemoryCache and retrieves items when needed. This is all in-memory. As per the docs , you should create limited number of 'instances' of MemoryCache if at all. Moderators can close this question, as it is stale with no activity!