






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In the world of internet, web programming is evolving and increasing its importance exponentially. This lecture key points are: Asp Cache, Caching Data, Cache, Caching an Output Page, Query Parameter, Application and Session, Important Cache Members, Cache Dependencies
Typology: Slides
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Caching Pages with the @ OutputCache Directive Introduction to caching data with the Cache object
You add the @OutputCache directive to a page with a few attributes Duration indicates the number of seconds to cache the page varyByParam If set to none, cached output will not vary based on parameters Use multiple semicolon separated parameters to create cached pages for various parameter configurations Use * to vary cached pages for all parameter configurations docsity.com
The caching mechanism is quite sophisticated You can create cache dependencies to SQL tables The cached page can be stored in the server or on the client The HttpCachePolicy class is used to create custom cache rules
It’s possible to cache parts of a page (page fragment) Refresh an AdRotater on each postback but cache the other parts of the page
It’s really a ‘replacement’ for the ASP.NET Application object It’s thread safe You to not need to explicitly lock critical code sections It’s configurable Cache objects can be configured to expire when you want them to Cache object can be prioritized
The Cache object (sort of) works in a Web garden Each processor gets its own object Cache objects will likely vary from one processor to the next All the work is handled by ASP.
The NoAbsoluteExpiration field is used to force a cached item never to expire The NoSlidingExpiration field disables sliding expiration