Caching in ASP.Net
 
What’s new in Caching & its advantages?
 
1. Cache Profiles

2. Custom Cache Dependencies

3. SqlCacheDependency

4. Post-Cache Substitution
 
Cache Profiles: Using Cache profiles you can create cache settings in an application's Web.config file and then reference those settings on individual pages. This lets you to apply cache settings to many pages at once.
 
Custom Cache Dependencies: In ASP.NET 2.0 it possible for you to create your own custom cache dependency based on application-specific conditions. To create a custom cache dependency, you create a class that inherits from Cache Dependency and in your custom class implement your own dependency methods.
 
SqlCacheDependency: In ASP.NET 2.0, the newly introduced SqlCacheDependency class, allows you to configure an item in the cache to have a dependency on a table or row in a Microsoft SQL Server database. ASP.NET 2.0 allows you to set a dependency on a table in SQL Server 7.0, SQL Server 2000, and SQL Server 2005. When using SQL Server 2005, you can also set a dependency on a specific record.
 
Post-Cache Substitution: ASP.NET 2.0 now offers post-cache substitution, which allows you to configure a section in a page as non-cacheable.
 
Advantages of Caching
 
1. Improves both the performance and the scalability of the application.

2. Immediate Response.

3. Save time and resource of server.

4. Reduce the load on database server or web server significantly.