What is Cache Callback in Cache? - ASP.NET

What is Cache Callback in Cache?

The cache object has dependencies e.g. relationships to the file it stores. Cache items remove the object when these dependencies change. As a work around we would need to simply execute a callback method whenever items are removed from the cache to add the items back in cache.

Example: We have a string variable string var="hello" and store it in cache. This item would be removed from the cache if value is changed from "hello" to "bye". In such a case we need to simply right a callback function which would add updated var back in cache as it’s been removed as a result of its dependencies changing.
What is Scavenging? - ASP.NET
What is Scavenging? - A process where items are removed from cache in order to free the memory based on their priority...
Explain the types of Caching using Cache object of ASP.NET
Types of Caching - Page output: Is used to fetch information or data at page level..
How to Cache different version of same page? - ASP.NET
How to Cache different version of same page - The ways to cache different versions on the same page using ASP.NET cache object is using OutputCache object..
Post your comment