Remove the cache object in Asp.Net
Data in the ASP.NET cache is volatile — that is, it is not permanently stored. It might be automatically removed from the cache for one of these reasons:
- Because the cache is full.
- Because the item has expired.
- Because an item it is dependent on changes.
In addition to allowing items to be removed from the cache automatically , you can explicitly remove them. Cache object's Remove method can be used to remove data from the cache.
If the value in the key parameter is not found, returns null.