A
A
azaznioo2018-04-22 17:21:02
ASP.NET
azaznioo, 2018-04-22 17:21:02

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

1 answer(s)
Z
Zelimkhan Beltoev, 2018-04-23
@Beltoev

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 question

Ask a Question

731 491 924 answers to any question