-->
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.  [ 1 post ] 
Author Message
 Post subject: One shot selects and updates then cache
PostPosted: Fri Mar 18, 2005 5:33 am 
Newbie

Joined: Fri Feb 25, 2005 10:51 am
Posts: 8
I'm trying to accomplish a according to me a pretty common data cache strategy using Hibernate. But I can't find a nice way to do it. Here is what I want to do:
    1. Select all data all att once and store it in 2nd level cache (disk and memory)
    2. Set an expiry for all data on 2 days. But I don't want the cache to remove the expired entries.
    3. When an expired entry is fetched I want to serve that expired data but start the batch fetch in an other thread that fetches all the data in the background and updates the cache.

Any suggestions on how to implement this?


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

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.