Default Cache duration

Topics: Caching Application Block
Aug 8, 2007 at 3:57 PM
Hi All

If I don't setup anything, what is the default duration for the cache called from CacheManager?

What I want to do is to setup a non-expiry cache to store the lookup data.

Aug 8, 2007 at 4:30 PM

AFAIK the default expiraton policy is no expiration (NeverExpired). However items may still be scavenged if necessary.

Aug 9, 2007 at 2:39 PM
Is there a way we can indicate that cache should never be scavenged?
Aug 9, 2007 at 3:03 PM
Setting NumberOfItemsToBeScavenged to 0 should do it, although a cache without expiraton nor scavenging looks a lot like a dictionary :)