Last post May 16, 2005 03:52 PM by jcw14
May 16, 2005 03:14 PM|azamsharp|LINK
May 16, 2005 03:52 PM|jcw14|LINK
NumberToRemoveWhenScavenging is how many elements it will remove from the cache each time you scavenge (defaults to 10), the configuration element MaximumElementsInCacheBeforeScavenging controls when to start scavenging (defaults to 1000). The cache is
sorted on every scavenge into a LRU list (not too bad a hit, as it will mostly be sorted when it does the sort), and as you've guessed the 1000 LRU items would be removed, or whatever number of scavengeable items if less than 1000. So in the default case,
you don't start to scavenge until there are at least a 1000 items in the cache (fresh and stale items), a scavenge then removes 10 LRU stale items. The default poll interval for scavenging is 60 seconds.