|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.caching.impl.CacheImpl
This is the Cocoon cache. This component is responsible for storing and retrieving cached responses. It can be used to monitor the cache or the investigate which responses are cached etc. This component will grow!
| Field Summary | |
protected Store |
store
The store containing the cached responses |
| Fields inherited from interface org.apache.cocoon.caching.Cache |
ROLE |
| Constructor Summary | |
CacheImpl()
|
|
| Method Summary | |
void |
clear()
clear cache of all cached responses |
boolean |
containsKey(Serializable key)
See if a response is cached under this key |
org.apache.cocoon.caching.CachedResponse |
get(Serializable key)
Get a cached response. |
protected Log |
getLogger()
|
void |
remove(Serializable key)
Remove a cached response. |
void |
setStore(Store store)
Set the Store implementation |
void |
store(Serializable key,
org.apache.cocoon.caching.CachedResponse response)
Store a cached response |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Store store
| Constructor Detail |
public CacheImpl()
| Method Detail |
public void store(Serializable key,
org.apache.cocoon.caching.CachedResponse response)
throws org.apache.cocoon.ProcessingException
store in interface org.apache.cocoon.caching.Cachekey - the key used by the caching algorithm to identify the
requestresponse - the cached response
org.apache.cocoon.ProcessingExceptionpublic org.apache.cocoon.caching.CachedResponse get(Serializable key)
null is returned.
get in interface org.apache.cocoon.caching.Cachekey - the key used by the caching algorithm to identify the
requestpublic void remove(Serializable key)
remove in interface org.apache.cocoon.caching.Cachekey - the key used by the caching algorithm to identify the
requestpublic void clear()
clear in interface org.apache.cocoon.caching.Cachepublic boolean containsKey(Serializable key)
containsKey in interface org.apache.cocoon.caching.Cachepublic void setStore(Store store)
protected Log getLogger()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||