jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tore Halset <hal...@pvv.ntnu.no>
Subject disc and contains(key)
Date Wed, 03 Oct 2007 11:04:04 GMT

I have a JCS disc based cache to hold some huge serialized java objects.

To speed things up, I have created a background job that fill up the  
complete cache. It typically does "if(cache.get(key)==null){cache.put 
(key, ....);}". I do not really want to get the old object, just know  
if it is there. So a cache.contains(key) would be a lot faster than  

Is such functionality already present in JCS? Or perhaps possible to  

  - Tore.

To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org

View raw message