@Bean
    @ConditionalOnMissingBean(name = "throttleRedisTemplate")
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public CasRedisTemplate throttleRedisTemplate(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("redisThrottleConnectionFactory")
        final RedisConnectionFactory redisThrottleConnectionFactory) {
        return BeanSupplier.of(CasRedisTemplate.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> RedisObjectFactory.newRedisTemplate(redisThrottleConnectionFactory))
            .otherwiseProxy()
            .get();
    }
This is {@link CasRedisThrottlingAutoConfiguration}.

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