IDictionaryEnumerator em = HttpContext.Current.Cache.GetEnumerator();
while (em.MoveNext())
{
if (需要删除的条件)
{
HttpContext.Current.Cache.Remove(em.Key.ToString());
}
}
IDictionaryEnumerator em = HttpContext.Current.Cache.GetEnumerator();
while (em.MoveNext())
{
if (需要删除的条件)
{
HttpContext.Current.Cache.Remove(em.Key.ToString());
}
}