|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PageCache
Represents a generic cache of WebProxy CacheEntry objects.
| Method Summary | |
|---|---|
void |
cachePage(String key,
CacheEntry entry,
boolean persistent)
Caches a page with the specified key and persistence flag. |
CacheEntry |
getCachedPage(String key)
Retrieves the cache entry for the specified key. |
CacheEntry |
getCachedPage(String key,
boolean useExpired)
Retrieves the cache entry for the specified key. |
CacheEntry |
getCachedPage(String key,
int maxCacheAge)
Retrieves the cache entry for the specified key. |
| Method Detail |
|---|
void cachePage(String key,
CacheEntry entry,
boolean persistent)
key - The key to cache the data for.entry - The cache entry to store.persistent - If true the entry will be stored in the persistent cache and be avaialble between restarts.CacheEntry getCachedPage(String key)
key - The key to retrieve the entry for.
CacheEntry getCachedPage(String key,
boolean useExpired)
key - The key to retrieve the entry for.useExpired - Flag to use the entry if it expired or not.
CacheEntry getCachedPage(String key,
int maxCacheAge)
key - The key to retrieve the entry for.maxCacheAge - The maximum age of the entry in seconds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||