Cache manager properties

Topics: Caching Application Block
Oct 22, 2007 at 4:10 PM
I see the default MaxElementsInCacheBeforeScavenging is 1000 and the NumberToRemoveWhenScavenging is 10.

Can anyone explain when you would consider raising these default values? or reducing them? Also, is the 100:1 ratio considered optimal?

Oct 22, 2007 at 8:18 PM
Hi Roger,

The values depend on the memory available, the average size of the items, how costly it is to build the items, etc. I don't think there are one size fits all values for these settings.

Hope this helps,