|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CachingStrategy
Interface for a cache loading strategy. Items may be loaded and cached based on a variety of algorithms. This interface abstracts out the loading policy from the rest of the caching machinery.
Updateable| Method Summary | |
|---|---|
void |
clearCache()
Clears all the elements in the cache. |
CacheRetriever |
getCacheRetriever()
Retrieve the CacheRetriever currently being used. |
java.lang.String |
getDefaultTemplateType()
Retrieves the default template type to be created when retrieving items from the cache. |
long |
getDelay()
Returns the interval between two cache updates. |
int |
getMaximumAge()
Retrieves the maximum age a cache item can be before it is evicted from the cache. |
void |
startAutoUpdate()
Begins automatic updates of the cache. |
| Methods inherited from interface freemarker.template.cache.Updateable |
|---|
update, update, update |
| Methods inherited from interface freemarker.template.cache.Cache |
|---|
addCacheListener, getCacheListeners, getItem, getItem, listCachedFiles, removeCacheListener, stopAutoUpdate |
| Method Detail |
|---|
CacheRetriever getCacheRetriever()
CacheRetriever currently being used.
CacheRetrieverlong getDelay()
int getMaximumAge()
java.lang.String getDefaultTemplateType()
void clearCache()
void startAutoUpdate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||