[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Refresh ahead - example? Or other alternatives?? Plz help  XML
Forum Index -> Ehcache
Author Message
ashly

neo

Joined: 02/21/2014 02:04:08
Messages: 4
Offline

I want to implement refresh ahead in my project. It takes time to load the data when the user access it. So, I need to load the data to the cache in the background automatically when the cache expires.

I have been trying to implement this, but had no luck. I can't get this to working.

Can somebody provide me with working example Java code please..

Thanks,
ashly

neo

Joined: 02/21/2014 02:04:08
Messages: 4
Offline

Any help please guys...
ashly

neo

Joined: 02/21/2014 02:04:08
Messages: 4
Offline

Or am I searching for something that does not exist?
klalithr

consul

Joined: 01/23/2011 10:58:07
Messages: 489
Offline

You can do it using the SelfPopulatingCache

Karthik Lalithraj (Terracotta)
ashly

neo

Joined: 02/21/2014 02:04:08
Messages: 4
Offline

Hi Karthk,

Thanks for your reply.

SelfPopulatingCache refreshes the data in the cache only when someone access the elements in the cache.

I need the cache to be refreshed automatically when the cache expires.

I'm sorry if I misunderstood this. It would be great if you can post a working example.

Thanks,
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team