I am using MVC 5, ASP.NET 4.7 on Azure App Services
I am using the ConcurrentDictionary object to persist data to save multiple calls to the data source.
A few questions on its behaviour:
1) Once it has been populated, then it will persist for multiple users of the same web application to access. Am I correct? So only the first user after a web site restart gets a performance hit.
2) How long does it persist for? Is it until another pool refresh or site restart, or is there some form of inactive timeout?
Thanks in advance.
EDIT:
public class myCache
{
private static readonly ConcurrentDictionary<int, string> myCacheDictionary = new ConcurrentDictionary<int, string>();
public static async Task populateCache()