Answer the question
In order to leave comments, you need to log in
ASP NET MVC and static collection?
Users visit the site.
Controllers use async/await.
We need a static collection that will need to go through and look for the desired values from the properties of the collection objects each time the user requests it.
The collection is populated once when the application starts.
The rest of the time is used for reading by streams.
Required access is access to the properties of objects.
What is the best collection to use?
And is it necessary to use a lock in the proposed case?
Answer the question
In order to leave comments, you need to log in
What is the best collection to use?Any. You will have read-only, no changes - no read locks are needed here.
And is it necessary to use a lock in the proposed case?No, it doesn `t need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question