public class URLCache extends Cache<String,String>
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
URLCache.CacheExpire
Contains information about which objects are used to create a certain cache entry.
|
lock, maxEntrySize| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
static URLCache |
getCache() |
String |
getDescription()
Gives a description for this cache type.
|
String |
getName()
Returns a name for this cache type.
|
void |
nodeChange(String nodeNumber)
Invalidates cache entries based on the node that changes
|
void |
put(String key,
String result,
Set<MMObjectNode> objects)
put an entry in the cache
|
static String |
toKey(MMObjectNode mediaFragment,
Map<String,Object> info)
creates a key based of the media fragment number and the user information
|
checkCachePolicy, contains, containsKey, containsValue, entrySet, equals, get, getAvarageValueLength, getByteSize, getByteSize, getCheapByteSize, getCount, getDefaultMaxEntrySize, 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, replaceAllpublic static URLCache getCache()
public static String toKey(MMObjectNode mediaFragment, Map<String,Object> info)
mediaFragment - fragment to be cachedinfo - user information to be cachedpublic void put(String key, String result, Set<MMObjectNode> objects)
key - cache keyresult - cache resultobjects - the objects that can invalidate the cachepublic void clear()
public void nodeChange(String nodeNumber)
nodeNumber - number of node that changespublic String getName()
Cachepublic String getDescription()
CachegetDescription in interface CacheMBeangetDescription in class Cache<String,String>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}