My web application uses enterprise library caching module. I’ve a config value below for Enterprise Library 4.0.
<cacheOptions>
<add name="Cache" cachePartition="Content" slidingExpirationTime="30" cachePrioriy="High" />
</cacheOptions>
If the user clicks 24 times on web page button does it mean that the caching expiration willl happen only after
24*30min ?
Thanks.
No, what it means is that an item is removed from the cache when it hasn’t been accessed for 30 minutes.
Suppose you add an item
Ato the cache att0. If you do not retrieveAfrom the cache for the next 30 minutes, it will be removed att0 + 30. However, suppose you retrieve the item att0 + 10. Now the expiration time ‘slides’ 10 minutes and your item will be removed att0 + 40.Cached items are removed 30 minutes after they are last accessed.