[jboss-user] [JBossCache] - LRU policy for separated object

bedek do-not-reply at jboss.com
Fri Nov 23 07:19:11 EST 2007


Hi,

As I understand LRU policy is removing ALL object from cache node:

Assumptions: 
Setting for some node:  timeToLiveSeconds = 600 and maxAgeSeconds = 600 means that ALL object will be remove after 10 minutes

Current result: 
This means that if I have 2 object and first will be added 9 minutes before second both will be removed 1 minute after adding second (Example: 
object "a" is added at 12:00, object "b" is added at 12:09, in result both object will be removed at 12:10 despite this that age of object "b" at moment of eviction was just 1 minute !)

Desired result: 
First object and second should be removed after 10 minutes from the moment of adding them to the node 
(Example: 
object "a" is added at 12:00, object "b" is added at 12:09, desired result is that object "a" will be removed at 12:10 and object "b" at 12:19)

How to achieve this behavior ?
(I know that I can place each object in separated node - so 1 node for 1 object - is there other resolution ?)

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

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



More information about the jboss-user mailing list