Package org.redisson.hibernate
Class RedissonStorage
- java.lang.Object
-
- org.redisson.hibernate.RedissonStorage
-
- All Implemented Interfaces:
org.hibernate.cache.spi.support.DomainDataStorageAccess,org.hibernate.cache.spi.support.StorageAccess
public class RedissonStorage extends Object implements org.hibernate.cache.spi.support.DomainDataStorageAccess
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonStorage(RMapCache<Object,Object> mapCache, ConnectionManager connectionManager, Map<String,Object> properties, String defaultKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Object key)voidevictData()voidevictData(Object key)ObjectgetFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session)voidputIntoCache(Object key, Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session)voidrelease()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getFromCache
public Object getFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session)
- Specified by:
getFromCachein interfaceorg.hibernate.cache.spi.support.StorageAccess
-
putIntoCache
public void putIntoCache(Object key, Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session)
- Specified by:
putIntoCachein interfaceorg.hibernate.cache.spi.support.StorageAccess
-
contains
public boolean contains(Object key)
- Specified by:
containsin interfaceorg.hibernate.cache.spi.support.StorageAccess
-
evictData
public void evictData()
- Specified by:
evictDatain interfaceorg.hibernate.cache.spi.support.StorageAccess
-
evictData
public void evictData(Object key)
- Specified by:
evictDatain interfaceorg.hibernate.cache.spi.support.StorageAccess
-
release
public void release()
- Specified by:
releasein interfaceorg.hibernate.cache.spi.support.StorageAccess
-
-