If you want to control the life of an object in the cache, use
MaxLifeSeconds.  In this scenario, no matter how popular an element is
in the cache, it will become stale when the MaxLifeSeconds is reached.  

If you want to control how long an object can remain idle before
becoming invalid, use MaxMemoryIdleTimes.  In this scenario, as long as
an element is accessed frequently, it will not become stale.  

ShrinkIntervalSeconds controls how often the MemoryShrinkerThread runs.
This thread looks through the cache for stale elements.  If it finds a
stale element, it removes it from the cache.  If you do not have this
thread enabled, JCS will not know an element is stale until the next
time it is accessed.  

-----Original Message-----
From: bobby buche` [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 2:44 PM
To: Turbine JCS Users List
Subject: Configuration Attributes

I'm need to set up different cache regions with different timeouts of
the objects within the different regions.  For example  Region A the
life of the objects are 24 hrs.  Region B the life of the objects 60
minutes and etc.   Do I want to use MaxLifeSeconds in each region to do
this.  Is there anywhere I can get a good descriptions of all the
attributes that the configuration can be set to.

What is ShrinkerIntervalSecond and MaxMemoryIdleTimeSeconds.


Brian


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to