title: how to configure memory size for asp.net inproc cache
body: <p>I do not want asp.net to take decision on when the items in the cache should be invalidated, rather the business logic should trigger the cache clean up.</p>
  
  <p>Asp.net automatically invalidates some items from the cache when the cache usage reaches a particular threshold value (inbuilt optimization in the framework). </p>
  
  <p>As of now the virtual memory settings on IIS for the thread pool is set to default.
  Is this somewhere I should make changes so that the threashold for the cache to expire will automatically bump up to a higher level.</p>
  
  <p>We are around more than 500 objects in the cache and do not want the cache to lose this data. While adding the items in the cache we are using <em>NoAbsoluteExpiration</em> and <em>NoSlidingExpiration</em> already.</p>
  
  <p>But still somewhere when adding items to cache above 450 objects, the item count in the cache suddendly drops down to 300.</p>