What is Caching in ASP.NET with example?

Caching in ASP.NET:

In ASP.NET, The cache has two methods of time expiring a cache value.
i. Absolute expiration: It is when the cache is deleted at a certain date or time,
ii. Sliding expiration: It is a time after the cache entry was last accessed.
It has the following syntax:

Cache.insert(key, value, dependencies, absoluteExpiration,
slidingExpiration)

Parameters of the Cache Insert Method:

key: Identifying key for cache item
value: The data to store
dependencies: Check for changes in this value or file to expire content
absoluteExpiration: Remove the cache value at a specific plan
slidingExpiration: Delete so long after the cache value was last accessed.