@ConditionalOnMissingBean(name = "redisAttributeRepositoryPlanConfigurer")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public PersonDirectoryAttributeRepositoryPlanConfigurer redisAttributeRepositoryPlanConfigurer(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("redisPersonAttributeDaos")
        final BeanContainer<PersonAttributeDao> redisPersonAttributeDaos) {
        return BeanSupplier.of(PersonDirectoryAttributeRepositoryPlanConfigurer.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> plan -> redisPersonAttributeDaos.toList().stream().filter(PersonAttributeDao::isEnabled).forEach(plan::registerAttributeRepository))
            .otherwiseProxy()
            .get();
    }
This is {@link CasRedisAuthenticationAutoConfiguration}.

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