|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.my.webproxy.beans.cache.ehcache.EhPageCache
public class EhPageCache
PageCache using EhCache
| Constructor Summary | |
|---|---|
EhPageCache()
|
|
| 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. |
net.sf.ehcache.Ehcache |
getEhcache()
|
void |
setCacheSecondsToLiveDefault(int cacheSecondsToLiveDefault)
|
void |
setEhcache(net.sf.ehcache.Ehcache ehcache)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EhPageCache()
| Method Detail |
|---|
public net.sf.ehcache.Ehcache getEhcache()
public void setEhcache(net.sf.ehcache.Ehcache ehcache)
public void cachePage(String key,
CacheEntry entry,
boolean persistent)
PageCache
cachePage in interface PageCachekey - 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.public CacheEntry getCachedPage(String key)
PageCache
getCachedPage in interface PageCachekey - The key to retrieve the entry for.
public CacheEntry getCachedPage(String key,
boolean useExpired)
PageCache
getCachedPage in interface PageCachekey - The key to retrieve the entry for.useExpired - Flag to use the entry if it expired or not.
public CacheEntry getCachedPage(String key,
int maxCacheAge)
PageCache
getCachedPage in interface PageCachekey - The key to retrieve the entry for.maxCacheAge - The maximum age of the entry in seconds.
public void setCacheSecondsToLiveDefault(int cacheSecondsToLiveDefault)
cacheSecondsToLiveDefault - the cacheSecondsToLiveDefault to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||