| Constructor and Description |
|---|
EhPageCache() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public net.sf.ehcache.Ehcache getEhcache()
public void setEhcache(net.sf.ehcache.Ehcache ehcache)
public void cachePage(String key, CacheEntry entry, boolean persistent)
PageCachepublic CacheEntry getCachedPage(String key)
PageCachegetCachedPage in interface PageCachekey - The key to retrieve the entry for.public CacheEntry getCachedPage(String key, boolean useExpired)
PageCachegetCachedPage 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)
PageCachegetCachedPage 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 setCopyright © 2016 Jasig. All Rights Reserved.