What are different types of caching? - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > .NET » What are different types of caching?


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-18-2006   #1 (permalink)
agaba175
Banned User
 
Join Date: Jul 2006
Location: India
Age: 30
Posts: 105
Post What are different types of caching?

What are different types of caching?
agaba175 is offline   Reply With Quote


Old 07-31-2006   #2 (permalink)
Nazir
Member
 
Join Date: Jul 2006
Age: 48
Posts: 45
Default Re: What are different types of caching?

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.
Nazir is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


footer left
All times are GMT. The time now is 08:22 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Air Jordans | Web Advertising | Credit Reports | Loans | Loans

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49