Hoping someone can clarify exactly what timeToLiveSeconds means for the
LRUPolicy.
Here's my situation:
1. I set an LRU eviction policy (see below) with a timeToLiveSeconds set to 10
seconds for my cache.
2. I create a node in the cache with an Fqn of "foo/bar" and a single object as
a value. For the purposes of this example, no other nodes are inserted or
removed from the cache.
3. My application calls cache.get("foo/bar") every second.
4. I would expect foo/bar and its data to never be removed as it is being
accessed (used) more frequently than the timeToLive.
Instead, I see foo/bar being evicted after 10-13 seconds.
Any help would be greatly appreciated,
Thanks,
Brian Dueck
<attribute
name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
|
| <!-- Specific eviction policy configurations. This is LRU -->
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">3</attribute>
| <!-- Cache wide default -->
| <region name="/_default_">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">15</attribute>
| </region>
| </config>
| </attribute>
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866732#3866732
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866732
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development