/// <summary>
/// 移出所有的缓存
/// </summary>
public void RemoveCache()
{
var cache = System.Web.HttpRuntime.Cache;
var CacheEnum = cache.GetEnumerator();
while (CacheEnum.MoveNext())
{
cache.Remove(CacheEnum.Key.ToString());
}
}
2023-10-31 18:48:52
/// <summary>
/// 移出所有的缓存
/// </summary>
public void RemoveCache()
{
var cache = System.Web.HttpRuntime.Cache;
var CacheEnum = cache.GetEnumerator();
while (CacheEnum.MoveNext())
{
cache.Remove(CacheEnum.Key.ToString());
}
}