Darshan,
Please don't post such questions on this mail list. This is for
discussion of issues around developing JBoss Cache, not for end-user
questions. Please use the user forums[1] instead.
Cheers and happy new year,
Manik
[1]
http://jboss.org/index.html?module=bb&op=viewforum&f=157
--
Manik Surtani
Lead, JBoss Cache
JBoss, a division of Red Hat
Email: manik(a)jboss.org
Telephone: +44 7786 702 706
MSN: manik(a)surtani.org
Yahoo/AIM/Skype: maniksurtani
On 1 Jan 2007, at 09:36, Darshan Bildikar wrote:
Hello All,
I'm new to JBoss cache and sorry if this question has already been
asked
before. I tried to find answers on the list with no success.
My problem is like this:-
I want to configure my cache such that
1) It contains no more than 10K objects at any given time
2) An object remains in the cache (either in memory / PERSISTENT
store) for
MAX 200 seconds. It must be automatically REMOVED from the cache
after 200
seconds lapse.
I am using an LRU eviction policy with a File cache loader. I have the
following question.
My region configuration looks like this
<region name="/test">
<attribute name="maxNodes">10000</attribute>
<attribute name="timeToLiveSeconds">100</attribute>
<attribute name="maxAgeSeconds">200</attribute>
</region>
I assume that this means "Evict my object to persistent store if
maxNodes >
10000 OR maxAgeSeconds > 200"
What I however want is: After 10000 entries any new entry it is
serialized
to the persistent store. However, after 200 seconds (irrespective
of whether
it's in the persistent store or in memory) it needs to be REMOVED
from the
cache. Is there a configuration that will help me do this?
I'm sorry if this question has been asked before. Appreciate any
pointers.
BR
Darshan
Human beings, who are almost unique in having the ability to learn
from the
experience of others, are also remarkable for their apparent
disinclination
to do so
_______________________________________________
jbosscache-dev mailing list
jbosscache-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosscache-dev