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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access