Constructor and Description |
---|
EhCacheCache(Ehcache ehcache)
Create an
EhCacheCache instance. |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
evict(Object key) |
org.springframework.cache.Cache.ValueWrapper |
get(Object key) |
String |
getName() |
Ehcache |
getNativeCache() |
void |
put(Object key,
Object value) |
public EhCacheCache(Ehcache ehcache)
EhCacheCache
instance.ehcache
- backing Ehcache instancepublic String getName()
getName
in interface org.springframework.cache.Cache
public Ehcache getNativeCache()
getNativeCache
in interface org.springframework.cache.Cache
public org.springframework.cache.Cache.ValueWrapper get(Object key)
get
in interface org.springframework.cache.Cache
public void put(Object key, Object value)
put
in interface org.springframework.cache.Cache
public void evict(Object key)
evict
in interface org.springframework.cache.Cache
public void clear()
clear
in interface org.springframework.cache.Cache