It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#2 (permalink) |
|
Member
Join Date: Jul 2006
Age: 48
Posts: 45
|
In ASP.NET 1.0/1.1 and now in ASP.NET 2.0, developers deal with caching in several ways. First, you can cache an entire HTTP response (the entire Web Page) using a mechanism called output caching. Two other methods are partial page caching and data caching.
Output Caching is a way to keep the dynamically generated page content in the server's memory for later retrieval. Caching Programmatically: Cache object, you can store and also invalidate items in the cache based on several different dependencies. In ASP.NET 1.0/1.1, the only possible dependencies were the following: - File-based dependencies - Key-based dependencies - Time-based dependencies When inserting items into the cache using the Cache object. you set the dependencies the Insert method, as shown in the following example: Cache.Insert("DSN", connectionString, _ New CacheDependency(Server.MapPath("myconfig.xml"))) By using a dependency when the item been referanced changes, you remove the cache for that item from memory. Cache Dependencies have been improved in ASP.NET 2.0 with the addition of the AggregateCacheDependency class, the newly extendable CacheDependency class, and capability to create your own custom CacheDependency classess. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What are different types of directives in .NET? | agaba175 | .NET | 1 | 07-19-2006 02:16 PM |
| Types Of Forums | Bballerkid6 | All Things General | 25 | 05-18-2006 04:03 PM |
| Types Of Gfx? | threemad3 | Graphics & Multimedia | 6 | 07-18-2005 09:27 AM |