Answer: At times we need to make sure that all the cache which was used must be cleared.
This can be done in many ways here is one of the way using the dictionary object
foreach(DictionaryEntry objClearItem in Cache)
{
//Response.Write (objClearItem .Key.ToString ());
Cache.Remove(objClearItem .Key.ToString () ) ;
}
Asked In: Many Interviews |
Alert Moderator