| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this cache instance.
|
String |
getId() |
Object |
getObject(Object key) |
int |
getSize()
Optional.
|
void |
putObject(Object key,
Object value) |
Object |
removeObject(Object key)
As of 3.3.0 this method is only called during a rollback
for any previous value that was missing in the cache.
|
void |
setSize(int size) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReadWriteLockpublic WeakCache(Cache delegate)
public String getId()
public int getSize()
Cachepublic void setSize(int size)
public Object removeObject(Object key)
CacheremoveObject in interface Cachekey - The keyCopyright © 2009–2021 MyBatis.org. All rights reserved.