[infinispan-dev] refresh ahead - do we want this?

Mircea Markus mircea.markus at jboss.com
Wed Sep 30 11:49:47 EDT 2009


For example, assume that the expiration time for entries in the cache  
is set to 60 seconds and the refresh-ahead factor is set to 0.5. If  
the cached object is accessed after 60 seconds, a synchronous read  
from the cache store is performed to refresh its value. On the other  
hand, if a request is performed for an entry that is more than 30 but  
less than 60 seconds old, the current value in the cache is returned  
and an asynchronous reload from the cache store is scheduled.

For frequently accessed data, requests won't block waiting for data to  
be retrieved from persistent store if data expires.
Wdyt?

Cheers,
Mircea



More information about the infinispan-dev mailing list