c# - Configuring cache manager expiration time in Caching Application Block -


i'm using caching application block on application. configuration file looks this:

<cachingconfiguration defaultcachemanager="cache manager">     <cachemanagers>       <add name="paramcache" type="microsoft.practices.enterpriselibrary.caching.cachemanager, microsoft.practices.enterpriselibrary.caching, version=5.0.414.0, culture=neutral, publickeytoken=31bf3856ad364e35" expirationpollfrequencyinseconds="60" maximumelementsincachebeforescavenging="1000" numbertoremovewhenscavenging="10" backingstorename="nullbackingstore"/>     </cachemanagers>     <backingstores>       <add type="microsoft.practices.enterpriselibrary.caching.backingstoreimplementations.nullbackingstore, microsoft.practices.enterpriselibrary.caching, version=5.0.414.0, culture=neutral, publickeytoken=31bf3856ad364e35" name="nullbackingstore"/>     </backingstores> </cachingconfiguration> 

i though expirationpollfrequencyinseconds attribute control expiration of values stored in cache, if i'll try fetching value cache stores 60 seconds or more, fetched db , not cache. configurations see value still fetching cache 5 minutes , gets updated value db.

what missing?

found problem. expirationpollfrequencyinseconds parameter not affect item expiration in cache, frequency of cleanup of expired items.

actually expiration time set when item added cache, in case set 5 minutes...


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -