@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "redisAuditTrailExecutionPlanConfigurer")
    public AuditTrailExecutionPlanConfigurer redisAuditTrailExecutionPlanConfigurer(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("redisAuditTrailManager")
        final AuditTrailManager redisAuditTrailManager) {
        return BeanSupplier.of(AuditTrailExecutionPlanConfigurer.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> plan -> plan.registerAuditTrailManager(redisAuditTrailManager))
            .otherwiseProxy()
            .get();
    }
This is {@link CasSupportRedisAuditAutoConfiguration}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-audit-redis/src/main/java/org/apereo/cas/config/CasSupportRedisAuditAutoConfiguration.java