jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ankur.ku...@axa.com.au
Subject Indexed Disk Cache , Remove expired Cache Item problem
Date Thu, 18 Mar 2004 04:56:39 GMT
If I put time to live for any cache item of  Indexed Disk Cache, cache 
item gets expired on time. 
It just gets removed from memory, as doRemove method is like this:.
.....
                return keyHash.remove( key ) != null;
...............

How that cache item and its value will get removed from actual file?

I'm calling doDispose as well, but it doesn't remove expired cache items 
from cache key/data file.

Here is debug info:

[DEBUG] CompositeCache - -Got CacheElement: 
[cacheName=eplatform_disk_cache, 
key=aol|ALL|policyId|search|findBySearchCri
teria|PolicyHeader|ClientSurname_smith|AdviserNumber_210712|AdviserType_Adviser|StartRow_1|Count_6,

val=com.axa.eplatfor
m.eai.EAILink$SendReceiveResponse@5d3b61, attr = [ IS_LATERAL = false, 
IS_SPOOL = true, IS_REMOTE = false, IS_ETERNAL =
false, MaxLifeSeconds = 20, IdleTime = -1, CreateTime = 1079582864617, 
LastAccessTime = 1079582864633, getTimeToLiveSeco
nds() = -2790483, createTime = 1079582864617 ]]
[DEBUG] CompositeCache - -Exceeded maxLife: 
aol|ALL|policyId|search|findBySearchCriteria|PolicyHeader|ClientSurname_smit
h|AdviserNumber_210712|AdviserType_Adviser|StartRow_1|Count_6
[DEBUG] CompositeCache - -eplatform_disk_cache - Aux cache[0] hit, but 
element expired
[DEBUG] LRUMemoryCache - -removing item for key: 
[cacheName=eplatform_disk_cache, key=aol|ALL|policyId|search|findBySear
chCriteria|PolicyHeader|ClientSurname_smith|AdviserNumber_210712|AdviserType_Adviser|StartRow_1|Count_6,

val=com.axa.epl
atform.eai.EAILink$SendReceiveResponse@5d3b61, attr = [ IS_LATERAL = 
false, IS_SPOOL = true, IS_REMOTE = false, IS_ETERN
AL = false, MaxLifeSeconds = 20, IdleTime = -1, CreateTime = 
1079582864617, LastAccessTime = 1079582864633, getTimeToLiv
eSeconds() = -2790530, createTime = 1079582864617 ]]
[DEBUG] CompositeCache - -Removing [cacheName=eplatform_disk_cache, 
key=aol|ALL|policyId|search|findBySearchCriteria|Pol
icyHeader|ClientSurname_smith|AdviserNumber_210712|AdviserType_Adviser|StartRow_1|Count_6,

val=com.axa.eplatform.eai.EAI
Link$SendReceiveResponse@5d3b61, attr = [ IS_LATERAL = false, IS_SPOOL = 
true, IS_REMOTE = false, IS_ETERNAL = false, Ma
xLifeSeconds = 20, IdleTime = -1, CreateTime = 1079582864617, 
LastAccessTime = 1079582864633, getTimeToLiveSeconds() = -
2790546, createTime = 1079582864617 ]] from cacheType2
[DEBUG] ReadWriteLockManager - -about to get write lock for id: 
[cacheName=eplatform_disk_cache, key=aol|ALL|policyId|se
arch|findBySearchCriteria|PolicyHeader|ClientSurname_smith|AdviserNumber_210712|AdviserType_Adviser|StartRow_1|Count_6,
val=com.axa.eplatform.eai.EAILink$SendReceiveResponse@5d3b61, attr = [ 
IS_LATERAL = false, IS_SPOOL = true, IS_REMOTE =
false, IS_ETERNAL = false, MaxLifeSeconds = 20, IdleTime = -1, CreateTime 
= 1079582864617, LastAccessTime = 107958286463
3, getTimeToLiveSeconds() = -2790577, createTime = 1079582864617 ]]
[DEBUG] ReadWriteLockManager - -Creating new lock holder, lock type: write
[DEBUG] ReadWriteLockManager - -write lock created for 
[cacheName=eplatform_disk_cache, key=aol|ALL|policyId|search|find
BySearchCriteria|PolicyHeader|ClientSurname_smith|AdviserNumber_210712|AdviserType_Adviser|StartRow_1|Count_6,

val=com.a
xa.eplatform.eai.EAILink$SendReceiveResponse@5d3b61, attr = [ IS_LATERAL = 
false, IS_SPOOL = true, IS_REMOTE = false, IS
_ETERNAL = false, MaxLifeSeconds = 20, IdleTime = -1, CreateTime = 
1079582864617, LastAccessTime = 1079582864633, getTim
eToLiveSeconds() = -2790577, createTime = 1079582864617 ]]
[DEBUG] ReadWriteLock - -writeLock acquired without waiting
[DEBUG] ReadWriteLock - -writeLock acquired without waiting
[DEBUG] ReadWriteLock - -writeLock released, no readers waiting
[DEBUG] ReadWriteLock - -writeLock released, no readers waiting
[DEBUG] ReadWriteLockManager - -lock done for id = 
[cacheName=eplatform_disk_cache, key=aol|ALL|policyId|search|findBySe
archCriteria|PolicyHeader|ClientSurname_smith|AdviserNumber_210712|AdviserType_Adviser|StartRow_1|Count_6,

val=com.axa.e
platform.eai.EAILink$SendReceiveResponse@5d3b61, attr = [ IS_LATERAL = 
false, IS_SPOOL = true, IS_REMOTE = false, IS_ETE
RNAL = false, MaxLifeSeconds = 20, IdleTime = -1, CreateTime = 
1079582864617, LastAccessTime = 1079582864633, getTimeToL
iveSeconds() = -2790577, createTime = 1079582864617 ]]

*********************************************************************************
Important Note
This email (including any attachments) contains information which is 
confidential and may be subject to legal privilege.  If you are not 
the intended recipient you must not use, distribute or copy this 
email.  If you have received this email in error please notify the 
sender immediately and delete this email. Any views expressed in this 
email are not necessarily the views of AXA.   Thank you.
*********************************************************************************


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message