views:

446

answers:

1

I'm wanting to programmatically monitor the cache size on a certain ASP.NET site. This is basically for the administration portion of a product, where we allow users to partially control whether their site uses caching or not.

Is there a way to do this. Should I be using the ManagementScope object to perform this query?

A: 

Is Cache.EffectivePrivateBytesLimit what you're after?

Stuart Dunkeld
That determines the maximum bytes allowable for the cache. I need the current cache size in memory.
steve_c