public class OSCacheImplementation<K,V> extends Object implements CacheImplementationInterface<K,V>
<cache name="NodeListCache">
<status>active</status>
<size>3</size>
<implementation>
<class>org.mmbase.cache.oscache.OSCacheImplementation</class>
<param name="path">/tmp</param>
</implementation>
</cache>
| Constructor and Description |
|---|
OSCacheImplementation() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Wrapper around the clear() method of the cache implementation.
|
void |
config(Map<String,String> config)
This method is called by MMBase to configure the cache using the given
map of configuration parameters.
|
boolean |
containsKey(Object key)
Wrapper around the containsKey() method of the cache implementation.
|
boolean |
containsValue(Object value)
Wrapper around the containsValue() method of the cache implementation.
|
Set<Map.Entry<K,V>> |
entrySet()
Wrapper around the entrySet() method of the cache implementation.
|
boolean |
equals(Object o)
Wrapper around the equals() method of the cache implementation.
|
V |
get(Object key)
Wrapper around the get() method of the cache implementation.
|
int |
getByteSize() |
int |
getByteSize(SizeOf sizeof) |
int |
getCount(K key)
Wrapper around the getCount() method of the cache implementation.
|
Object |
getLock()
The cache implementation must be somehow thread-safe.
|
int |
hashCode()
Wrapper around the hashCode() method of the cache implementation.
|
boolean |
isEmpty()
Wrapper around the isEmpty() method of the cache implementation.
|
Set<K> |
keySet()
Wrapper around the keySet() method of the cache implementation.
|
int |
maxSize()
Wrapper around the getMaxEntries() method of the cache implementation.
|
V |
put(K key,
V value)
Wrapper around the put() method of the cache implementation.
|
void |
putAll(Map t)
Wrapper around the putAll() method of the cache implementation.
|
V |
remove(Object key)
Wrapper around the remove() method of the cache implementation.
|
void |
setMaxSize(int size)
Wrapper around the setMaxEntries() method of the cache implementation.
|
int |
size()
Wrapper around the size() method of the cache implementation.
|
Collection<V> |
values()
Wrapper around the values() method of the cache implementation.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic void config(Map<String,String> config)
config in interface CacheImplementationInterface<K,V>public void setMaxSize(int size)
setMaxSize in interface CacheImplementationInterface<K,V>public int maxSize()
maxSize in interface CacheImplementationInterface<K,V>public int getCount(K key)
getCount in interface CacheImplementationInterface<K,V>public void clear()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public Set<Map.Entry<K,V>> entrySet()
public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
public void putAll(Map t)
public int size()
public Collection<V> values()
public int getByteSize()
SizeMeasurable.getByteSize()public int getByteSize(SizeOf sizeof)
public Object getLock()
CacheImplementationInterfacegetLock in interface CacheImplementationInterface<K,V>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}