Can expiration policies be configured in entlib caching application block?
Posted
by stesoc
on Stack Overflow
See other posts from Stack Overflow
or by stesoc
Published on 2010-06-10T09:27:32Z
Indexed on
2010/06/10
9:32 UTC
Read the original article
Hit count: 255
Hi,
Is there a way to tell a CacheManager that every item added will have the same expiration policy?
For example in:
<cachingConfiguration defaultCacheManager="DefaultCacheManager">
<cacheManagers>
<add name="TestCM"
expirationPollFrequencyInSeconds="60"
maximumElementsInCacheBeforeScavenging="1000"
numberToRemoveWhenScavenging="10"
backingStoreName="Null Storage"
type="Microsoft.Practices.EnterpriseLibrary.Caching.CacheManager, Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
I expected to have some attribute like expirationPolicy="AbsoluteTime" or "SlidingTime" and a expirationValue="..." for specifying the timespan to use.
Thanks, s.
© Stack Overflow or respective owner