asp.net cache within httpcontext

I want to cache objects being pulled from a database that do not often get modified, because every time the page loads nearly 2000 items are selected, causing a noticable performance issue during page load.

After review here and a few MSDN articles (most relevant is here) it seems that these are solutions to prevent a single user from making multiple roundtrips to the database, and that this cache will expire once the httprequest is closed.

Can any one clear the confusion, providing an applicable reference if found?

5
задан Community 23 May 2017 в 11:47
поделиться