Package com.logicaldoc.util.cache
Class EhCache<K extends Serializable,V>
java.lang.Object
com.logicaldoc.util.cache.EhCache<K,V>
- Type Parameters:
K
- The object identifierV
- The object instance
- All Implemented Interfaces:
Cache<K,
V>
A thin adapter for Ehcache support.
Thread-safety is taken care of by the underlying Ehcache instance.
see org.springframework.cache.ehcache.EhCacheFactoryBean
see org.springframework.cache.ehcache.EhCacheManagerFactoryBean
- Since:
- 5.0
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EhCache
public EhCache(net.sf.ehcache.Cache cache)
-
-
Method Details
-
contains
- Specified by:
contains
in interfaceCache<K extends Serializable,
V>
-
getKeys
- Specified by:
getKeys
in interfaceCache<K extends Serializable,
V>
-
get
- Specified by:
get
in interfaceCache<K extends Serializable,
V>
-
put
- Specified by:
put
in interfaceCache<K extends Serializable,
V>
-
remove
- Specified by:
remove
in interfaceCache<K extends Serializable,
V>
-
clear
public void clear()- Specified by:
clear
in interfaceCache<K extends Serializable,
V>
-
flush
public void flush()- Specified by:
flush
in interfaceCache<K extends Serializable,
V>
-
getSize
public long getSize()- Specified by:
getSize
in interfaceCache<K extends Serializable,
V>
-
reloadManager
public static final void reloadManager() -
getManager
public static final net.sf.ehcache.CacheManager getManager()
-