Class RedisCacheResource

java.lang.Object
io.micronaut.crac.resources.redis.AbstractRedisResource<io.micronaut.configuration.lettuce.cache.RedisCache>
io.micronaut.crac.resources.redis.RedisCacheResource
All Implemented Interfaces:
io.micronaut.core.order.Ordered, OrderedResource, org.crac.Resource

@EachBean(io.micronaut.configuration.lettuce.cache.RedisCache.class) @Requires(classes=io.micronaut.configuration.lettuce.cache.RedisCache.class) @Requires(bean=CracResourceRegistrar.class) @Requires(property="crac.redis.cache-enabled",defaultValue="true",value="true") public class RedisCacheResource extends AbstractRedisResource<io.micronaut.configuration.lettuce.cache.RedisCache>
Destroys any RedisCache beans before checkpointing.
Since:
1.2.1
Author:
Tim Yates
  • Constructor Details

    • RedisCacheResource

      public RedisCacheResource(io.micronaut.context.BeanContext beanContext, CracEventPublisher eventPublisher, io.micronaut.configuration.lettuce.cache.RedisCache redisCache)
  • Method Details

    • beforeCheckpoint

      public void beforeCheckpoint(org.crac.Context<? extends org.crac.Resource> context) throws Exception
      Throws:
      Exception