abstract class EhcacheGeneralDataRegion extends EhcacheDataRegion implements org.hibernate.cache.GeneralDataRegion
GeneralDataRegion instances are used for both the timestamps and query caches.
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
accessStrategyFactory, cache
Constructor and Description |
---|
EhcacheGeneralDataRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
Ehcache cache,
java.util.Properties properties)
Creates an EhcacheGeneralDataRegion using the given Ehcache instance as a backing.
|
Modifier and Type | Method and Description |
---|---|
void |
evict(java.lang.Object key) |
void |
evictAll() |
java.lang.Object |
get(java.lang.Object key) |
void |
put(java.lang.Object key,
java.lang.Object value) |
contains, destroy, getEhcache, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
public EhcacheGeneralDataRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache cache, java.util.Properties properties)
public java.lang.Object get(java.lang.Object key) throws org.hibernate.cache.CacheException
get
in interface org.hibernate.cache.GeneralDataRegion
org.hibernate.cache.CacheException
public void put(java.lang.Object key, java.lang.Object value) throws org.hibernate.cache.CacheException
put
in interface org.hibernate.cache.GeneralDataRegion
org.hibernate.cache.CacheException
public void evict(java.lang.Object key) throws org.hibernate.cache.CacheException
evict
in interface org.hibernate.cache.GeneralDataRegion
org.hibernate.cache.CacheException
public void evictAll() throws org.hibernate.cache.CacheException
evictAll
in interface org.hibernate.cache.GeneralDataRegion
org.hibernate.cache.CacheException