Class RedisCacheConfiguration
java.lang.Object
io.micronaut.configuration.lettuce.cache.AbstractRedisCacheConfiguration
io.micronaut.configuration.lettuce.cache.RedisCacheConfiguration
@EachProperty("redis.caches")
@Requires(classes=io.micronaut.cache.SyncCache.class)
public class RedisCacheConfiguration
extends AbstractRedisCacheConfiguration
Allows configuration of caches stored in Redis.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from class io.micronaut.configuration.lettuce.cache.AbstractRedisCacheConfiguration
charset, expirationAfterWritePolicy, expireAfterAccess, expireAfterWrite, invalidateScanCount, keySerializer, server, valueSerializer
-
Constructor Summary
ConstructorDescriptionRedisCacheConfiguration
(String cacheName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) Constructor. -
Method Summary
Methods inherited from class io.micronaut.configuration.lettuce.cache.AbstractRedisCacheConfiguration
getCharset, getExpirationAfterWritePolicy, getExpireAfterAccess, getExpireAfterWrite, getInvalidateScanCount, getKeySerializer, getServer, getValueSerializer, setCharset, setExpirationAfterWritePolicy, setExpireAfterAccess, setExpireAfterWrite, setInvalidateScanCount
-
Field Details
-
cacheName
-
-
Constructor Details
-
RedisCacheConfiguration
public RedisCacheConfiguration(@Parameter String cacheName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) Constructor.- Parameters:
cacheName
- cacheNameapplicationConfiguration
- applicationConfiguration
-
-
Method Details
-
getCacheName
- Returns:
- The name of the cache
-