I have various caches on my compiled开发者_JAVA技巧 website. However, I need to clear all these caches. Is there a way of doing this (without having to restart the server!)?
Thanks! Curt
What cache mechanism are you using?
One typical method would be to have a routine such as:
foreach (DictionaryEntry objItem in Cache)
{
Cache.Remove(objItem.Key.ToString());
}
精彩评论