Hello everybody.

I have a little doubt. I have defined the following region:

region name="/test"
maxNodes=3
timeToLiveSeconds=0

I have no CacheLoader.

So I suppose that if I insert nodes A, B, C, and D in region "/test", the node 
A will be evicted (LRU) and the cache will have nodes B, C and D, but in my 
tests all the nodes A, B, C and D persists in the cache. With others caches 
with the LRU politic, node A (older) would be deleted.

Is the paramater "timeToLiveSeconds" with the value "0" what makes the nodes 
lives forever and not to be evicted? 

Is it possible to have only 3 nodes and the older to be evicted when I insert a 
new one (with no "timeToLiveSecond" parameter)?

I need only to have stored the last 50 entries (by example), and to 
evict/delete the older one (last accesed in time) when I insert a new node. 

What I'm making wrong?

Sorry but this silly question, but I have been working with SwarmCache 
(Claudius branch) and with LRU policy, and now we want to migrate to JBossCache 
and have to mantain this behaviour, and I presume I'm missing something 
although I have read the docs.

Thanks in advance. Best regards.

Jose Angel Chico

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

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to