Introduction to .NET Framework 3.0/Caching
There are three types of caching supported by .NET 3.0
- Absolute Expiration Caching
- Sliding Caching
- Cache Dependency Expiration caching
Absolute Expiration Caching
This is a form of caching wherein the expiration time is specified in advance. After a specific period of time, the contents of the cache get deleted.
Here, a time span is specified upto which the program checks for access. If no individual has accessed the site till the time span has expired, then the contents of the cache get deleted. So here, the timespan of the cache depends upon the popularity of the site.
Cache Dependency Expiration
In cache dependency expiration, the timespan of the cache depends on when the particular item on which the data is dependent is changed.