com.opensymphony.oscache.web
Interface WebEntryRefreshPolicy

All Superinterfaces:
EntryRefreshPolicy, Serializable

public interface WebEntryRefreshPolicy
extends EntryRefreshPolicy

Interface to implement an entry refresh policy. Specify the name of the implementing class using the refreshpolicyclass attribute of the cache tag. If any additional parameters are required, they should be supplied using the refreshpolicyparam attribute.

For example:

 <cache:cache key="mykey"
              refreshpolicyclass="com.mycompany.cache.policy.MyRefreshPolicy"
              refreshpolicyparam="...additional data...">
       My cached content
 </cache:cache>
 

Version:
$Revision: 1.1 $
Author:
Francois Beauregard

Method Summary
 void init(String key, String param)
          Initializes the refresh policy.
 
Methods inherited from interface com.opensymphony.oscache.base.EntryRefreshPolicy
needsRefresh
 

Method Detail

init

public void init(String key,
                 String param)
Initializes the refresh policy.

Parameters:
key - The cache key that is being checked.
param - Any optional parameters that were supplied

OSCache Project Page