Package com.axelor.cache.redisson
Class RedissonCacheBuilder<K,V>
java.lang.Object
com.axelor.cache.CacheBuilder<K,V>
com.axelor.cache.redisson.AbstractRedissonCacheBuilder<K,V,org.redisson.api.RMapCache<K,V>,org.redisson.api.options.MapCacheOptions<K,V>>
com.axelor.cache.redisson.RedissonCacheBuilder<K,V>
- Type Parameters:
K
- the type of keys maintained by this cacheV
- the type of mapped values
public class RedissonCacheBuilder<K,V>
extends AbstractRedissonCacheBuilder<K,V,org.redisson.api.RMapCache<K,V>,org.redisson.api.options.MapCacheOptions<K,V>>
Redisson cache builder
This builds an AxelorCache
wrapping a RMapCache
.
-
Field Summary
Fields inherited from class com.axelor.cache.redisson.AbstractRedissonCacheBuilder
PREFIX
-
Constructor Summary
ConstructorsConstructorDescriptionRedissonCacheBuilder
(CacheBuilder<K, V> builder) RedissonCacheBuilder
(String cacheName) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureCache
(AbstractRedissonCache<K, V, org.redisson.api.RMapCache<K, V>> cache) newMapCache
(org.redisson.api.options.MapCacheOptions<K, V> options) protected RedissonCache
<K, V> newRedissonCache
(org.redisson.api.RMapCache<K, V> cache) protected RemovalCause
toRemovalCause
(org.redisson.api.map.event.EntryEvent<K, V> event) Methods inherited from class com.axelor.cache.redisson.AbstractRedissonCacheBuilder
build, build
Methods inherited from class com.axelor.cache.CacheBuilder
expireAfterAccess, expireAfterWrite, fromCacheName, getCacheName, getCacheProviderInfo, getCacheType, getExpireAfterAccess, getExpireAfterWrite, getMaximumSize, getRemovalListener, isWeakKeys, isWeakValues, maximumSize, newBuilder, newInMemoryBuilder, removalListener, weakKeys, weakValues
-
Constructor Details
-
RedissonCacheBuilder
-
RedissonCacheBuilder
-
-
Method Details
-
newOptions
- Specified by:
newOptions
in classAbstractRedissonCacheBuilder<K,
V, org.redisson.api.RMapCache<K, V>, org.redisson.api.options.MapCacheOptions<K, V>>
-
newMapCache
protected org.redisson.api.RMapCache<K,V> newMapCache(org.redisson.api.options.MapCacheOptions<K, V> options) - Specified by:
newMapCache
in classAbstractRedissonCacheBuilder<K,
V, org.redisson.api.RMapCache<K, V>, org.redisson.api.options.MapCacheOptions<K, V>>
-
newRedissonCache
- Specified by:
newRedissonCache
in classAbstractRedissonCacheBuilder<K,
V, org.redisson.api.RMapCache<K, V>, org.redisson.api.options.MapCacheOptions<K, V>>
-
configureCache
- Overrides:
configureCache
in classAbstractRedissonCacheBuilder<K,
V, org.redisson.api.RMapCache<K, V>, org.redisson.api.options.MapCacheOptions<K, V>>
-
toRemovalCause
-