우리는 DB 데이터를 사용하여 자주 저장하기 위해 HttpRuntime Cache를 사용하는 웹 애플리케이션을 가지고 있습니다. 코드는 다음과 같습니다 여기
.Net의 Hashtable 객체가 사용하는 메모리
public static void Add(string cacheName, Hashtable cacheValue)
{
System.Web.HttpRuntime.Cache.Add(cacheName, cacheValue, null, DateTime.Now.AddSeconds(60), TimeSpan.Zero, System.Web.Caching.CacheItemPriority.High, null);
}
해시 테이블 개체가 데이터베이스에서 데이터를 수신하고 httpRuntime을 캐시에 추가. 코드를 사용하여이 해시 테이블 객체가 취한 메모리를 찾는 방법 ..... 감사합니다.
가능한 중복 [메모리에 객체의 크기를 얻는 방법?] (http://stackoverflow.com/questions/605621/ 메모리 사용 방법) –