Configuring the Cache

You can configure the size of the cache by using the web configuration file. You specify cache settings with the cache element. This element supports the following attributes:

disableMemoryCollection Enables you to prevent items from being removed from the cache when memory resources become low.

disableExpiration Enables you to prevent items from being removed from the cache when the items expire.

privateBytesLimit Enables you to specify the total amount of memory that can be consumed by your application and its cache before items are removed.

percentagePhysicalMemoryUsedLimit Enables you to specify the total percentage of memory that can be consumed by your application and its cache before items are removed. ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.