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 Details

    • cacheName

      protected final String cacheName
  • Constructor Details

    • RedisCacheConfiguration

      public RedisCacheConfiguration(@Parameter String cacheName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
      Constructor.
      Parameters:
      cacheName - cacheName
      applicationConfiguration - applicationConfiguration
  • Method Details

    • getCacheName

      public String getCacheName()
      Returns:
      The name of the cache