public class Cache<K> extends Object
Cache to avoid accessing the cache using wrong key objects.| Constructor and Description |
|---|
Cache(net.sf.ehcache.Cache delegate) |
| Modifier and Type | Method and Description |
|---|---|
net.sf.ehcache.Element |
get(K key) |
List<K> |
getKeys() |
String |
getName() |
int |
getSize() |
void |
put(net.sf.ehcache.Element element) |
net.sf.ehcache.Element |
putIfAbsent(net.sf.ehcache.Element element) |
boolean |
remove(K key) |
boolean |
replace(net.sf.ehcache.Element old,
net.sf.ehcache.Element element) |
public net.sf.ehcache.Element get(K key)
public boolean remove(K key)
public net.sf.ehcache.Element putIfAbsent(net.sf.ehcache.Element element)
public void put(net.sf.ehcache.Element element)
public boolean replace(net.sf.ehcache.Element old,
net.sf.ehcache.Element element)
public int getSize()
public String getName()
Copyright © 2010–2016 Hibernate. All rights reserved.