-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Delete from Second Level Cache
PostPosted: Thu Aug 13, 2009 2:58 pm 
Newbie

Joined: Mon Oct 20, 2008 11:37 am
Posts: 7
As I understand, if the second level cache is configured, an object is placed in it immediately after reading from a database. An object in the second level cache outlives the session in which it was retrieved. So the question is when an object is deleted from the second level cache?
I understand that I can explicitly evict it from the cache. But in a web application it is not convenient, I would prefer if it is done automatically, based on some expiration mechanism.

Thanks,
Lev


Top
 Profile  
 
 Post subject: Re: Delete from Second Level Cache
PostPosted: Fri Aug 14, 2009 11:29 am 
Newbie

Joined: Mon Oct 20, 2008 11:37 am
Posts: 7
It was a stupid question on my part. Obviously every cache implementation have to have a parameter that specifies a maximum idling time after which an object is deleted from cache.
At least EhCache has it. I found this information in
http://blog.upcom.eu/2009/01/19/improving-hibernate-performance-using-second-level-cache/

Lev Tannen


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.