[jboss-user] [JBoss Cache: Core Edition] - Re: 2.2 to 3.0CR2

lovelyliatroim do-not-reply at jboss.com
Thu Oct 30 05:24:42 EDT 2008

Next thing i noticed is this

When  I have this in 2.x format 

  | <region name="/evictiontest/LRU" policyClass="org.jboss.cache.eviction.LRUPolicy">
  |                   <attribute name="maxNodes">3</attribute>
  |                   <attribute name="timeToLiveSeconds">0</attribute>
  |                   <attribute name="maxAgeSeconds">0</attribute>
  |             </region>

Run it throught the converter into 3.x format and i get this

  | <region name="/evictiontest/LRU" algorithmClass="org.jboss.cache.eviction.LRUAlgorithm" eventQueueSize="200000">
  | <property name="maxNodes" value="3"/>
  | <property name="timeToLive" value="0000"/>
  | <property name="maxAge" value="0000"/>
  | </region>

Now correct me if I am wrong but in 2.x format for timeToLiveSeconds and maxAgeSeconds, zero means no limit but in 3.x format 0 means evict straight away and -1 means no limit.

So looks to me that the converter should map the zero in 2.x format to a -1 in 3.x format. 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185640#4185640

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185640

More information about the jboss-user mailing list