2012-09-03 5 views
1

메모리 cosumption, 키 및 값에 대한 Enterprize Libray 캐시를 모니터링하고 싶습니다. stackoverflow 검색 및 near answer 있어요. 그러나 나는 어떻게 할 수 있는지 이해하지 못한다 :엔터프라이즈 라이브러리 캐시 모니터링

다운로드 된 소스를 프로젝트로 참조하면 원래 CacheManager를 수정하여 CurrentCacheState라는 속성이있는 캐시의 인스턴스를 노출 할 수있다.

어떤 아이디어?

답변

0

ICacheManager manager = EnterpriseLibraryContainer.Current.GetInstance<ICacheManager>("your cache name"); 
Cache cache = EnterpriseLibraryContainer.Current.GetInstance<Cache>("your cache name"); 

당신은 다음

cache.CurrentCacheState 
으로 물건을 할 수있는 시도
관련 문제