2014-01-24 4 views

답변

1
// My cache, handle it the way you like 
private static DataCache _cache; 

public static void ClearCache() 
{ 
    Parallel.ForEach(_cache.GetSystemRegions(), region => 
    { 
     _cache.ClearRegion(region); 
     var sysRegion = _cache.GetSystemRegionName(region); 
     _cache.ClearRegion(sysRegion); 
    }); 
} 

다음은 어딘가에서 자신을 정의하는 일정에 따라 실행하십시오.

Powershell에서도 이와 동등한 기능을 수행 할 수 있다고 생각합니다. 그러나이 솔루션은 잠시 사용하고 있습니다.

관련 문제