public class ResultCache extends Cache<String,String>
lock, maxEntrySize| Modifier and Type | Method and Description |
|---|---|
String |
get(Templates temp,
Source xsl,
Map params,
Properties props,
Document src)
This is an intelligent get, which also does the put if it
cannot find the requested result.
|
static ResultCache |
getCache()
Returns the XSLT Result cache.
|
protected int |
getDefaultMaxEntrySize()
This has to be overridden by Caches which support max entry size.
|
String |
getDescription()
Gives a description for this cache type.
|
String |
getName()
Returns a name for this cache type.
|
String |
put(Object key,
Templates value)
You can only put Source/Templates values in the cache, so this throws an Exception.
|
checkCachePolicy, clear, contains, containsKey, containsValue, entrySet, equals, get, getAvarageValueLength, getByteSize, getByteSize, getCheapByteSize, getCount, getHits, getImplementation, getLock, getMaxEntrySize, getMaxSize, getMisses, getPuts, getRatio, getSize, getStats, hashCode, isActive, isEmpty, keySet, maxSize, put, putAll, putCache, remove, reset, setActive, setMaxEntrySize, setMaxSize, size, toString, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected int getDefaultMaxEntrySize()
CachegetDefaultMaxEntrySize in class Cache<String,String>public static ResultCache getCache()
public String getName()
Cachepublic String getDescription()
CachegetDescription in interface CacheMBeangetDescription in class Cache<String,String>public String put(Object key, Templates value)
RuntimeExceptionpublic String get(Templates temp, Source xsl, Map params, Properties props, Document src)
temp - The Templates from which the transformer must be created (if necessary)xsl - The XSL Source. This only used to produce the key, because with the Templates it
is difficultparams - Parameters for the XSL Transformationsrc - The Document which must be transformed.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}