public class CacheWrapper<K,V>
extends java.lang.Object
| Constructor and Description |
|---|
CacheWrapper(net.sf.ehcache.Ehcache cache) |
| Modifier and Type | Method and Description |
|---|---|
net.sf.ehcache.Ehcache |
cache() |
V |
get(K key) |
V |
getOrPut(K key,
java.util.function.Supplier<V> valueSupplier) |
static <K,V> CacheWrapper<K,V> |
of(net.sf.ehcache.config.CacheConfiguration cacheConfiguration) |
void |
put(K key,
V value) |
boolean |
remove(K key) |
public static <K,V> CacheWrapper<K,V> of(net.sf.ehcache.config.CacheConfiguration cacheConfiguration)
public boolean remove(K key)
public net.sf.ehcache.Ehcache cache()