Caching table when starting ASP.NET MVC Application

I have an ASP.NET MVC application where I save all the outliers in a table. Therefore, on average, each page accesses this table 2-3 times. I want to cache (load into memory) this table when the application starts.

Is there any way to do this? I have googled, but useful topics have been found.

Thanks in advance.

+3
source share
2 answers

You can use the built-in cache . Regarding the launch of the application, you can use the method Application_Startin global.asax.

+3
source

Would load it into a static variable for you?

, .

Sidenote: ? , , .

0

Source: https://habr.com/ru/post/1773381/


All Articles