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
FieldsFields inherited from class io.micronaut.configuration.lettuce.cache.AbstractRedisCacheConfiguration
charset, expirationAfterWritePolicy, expireAfterAccess, expireAfterWrite, keySerializer, server, valueSerializer
-
Constructor Summary
ConstructorsConstructorDescriptionRedisCacheConfiguration
(String cacheName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) Constructor. -
Method Summary
Methods inherited from class io.micronaut.configuration.lettuce.cache.AbstractRedisCacheConfiguration
getCharset, getExpirationAfterWritePolicy, getExpireAfterAccess, getExpireAfterWrite, getKeySerializer, getServer, getValueSerializer, setCharset, setExpirationAfterWritePolicy, setExpireAfterAccess, setExpireAfterWrite
-
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
-