kr.pe.kwonnam.hibernate4memcached.regions.TimestampMemcachedRegion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate4-memcached-core Show documentation
Show all versions of hibernate4-memcached-core Show documentation
hibernate4 memcached L2 cache implementation.
package kr.pe.kwonnam.hibernate4memcached.regions;
import kr.pe.kwonnam.hibernate4memcached.memcached.CacheNamespace;
import kr.pe.kwonnam.hibernate4memcached.memcached.MemcachedAdapter;
import kr.pe.kwonnam.hibernate4memcached.timestamper.HibernateCacheTimestamper;
import kr.pe.kwonnam.hibernate4memcached.util.OverridableReadOnlyProperties;
import org.hibernate.cache.spi.TimestampsRegion;
import org.hibernate.cfg.Settings;
/**
* {@link org.hibernate.cache.spi.TimestampsRegion} has no concurrency strategy.
* It deals [cache-region-prefix.]org.hibernate.cache.spi.UpdateTimestampsCache
.
*
*
* This region should have very long expiry seconds.
*
* @author KwonNam Son ([email protected])
*/
public class TimestampMemcachedRegion extends GeneralDataMemcachedRegion implements TimestampsRegion {
public TimestampMemcachedRegion(String regionName, OverridableReadOnlyProperties properties, Settings settings,
MemcachedAdapter memcachedAdapter,
HibernateCacheTimestamper hibernateCacheTimestamper) {
super(new CacheNamespace(regionName, false), properties, null, settings, memcachedAdapter,
hibernateCacheTimestamper);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy