public class NonStrictReadWriteRedisCollectionRegionAccessStrategy extends AbstractRedisAccessStrategy<RedisCollectionRegion> implements org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
options, region
Constructor and Description |
---|
NonStrictReadWriteRedisCollectionRegionAccessStrategy(RedisCollectionRegion region,
org.hibernate.boot.spi.SessionFactoryOptions options) |
Modifier and Type | Method and Description |
---|---|
Object |
generateCacheKey(Object id,
org.hibernate.persister.collection.CollectionPersister persister,
org.hibernate.engine.spi.SessionFactoryImplementor factory,
String tenantIdentifier) |
Object |
get(org.hibernate.engine.spi.SessionImplementor session,
Object key,
long txTimestamp) |
Object |
getCacheKeyId(Object cacheKey) |
org.hibernate.cache.spi.CollectionRegion |
getRegion() |
boolean |
putFromLoad(org.hibernate.engine.spi.SessionImplementor session,
Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride) |
evict, evictAll, lockItem, lockRegion, options, putFromLoad, remove, removeAll, unlockItem, unlockRegion
public NonStrictReadWriteRedisCollectionRegionAccessStrategy(RedisCollectionRegion region, org.hibernate.boot.spi.SessionFactoryOptions options)
region
- options
- public Object generateCacheKey(Object id, org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor factory, String tenantIdentifier)
generateCacheKey
in interface org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
public Object getCacheKeyId(Object cacheKey)
getCacheKeyId
in interface org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
public org.hibernate.cache.spi.CollectionRegion getRegion()
getRegion
in interface org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
public boolean putFromLoad(org.hibernate.engine.spi.SessionImplementor session, Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride)
putFromLoad
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
putFromLoad
in class AbstractRedisAccessStrategy<RedisCollectionRegion>
public Object get(org.hibernate.engine.spi.SessionImplementor session, Object key, long txTimestamp) throws org.hibernate.cache.CacheException
get
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
get
in class AbstractRedisAccessStrategy<RedisCollectionRegion>
org.hibernate.cache.CacheException
Copyright © 2018. All rights reserved.