@ConditionalOnMissingBean(name = "bucket4jThrottledRequestStore")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public BucketStore bucket4jThrottledRequestStore(
        final ConfigurableApplicationContext applicationContext,
        final CasConfigurationProperties casProperties) {
        return BeanSupplier.of(BucketStore.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> {
                val throttle = casProperties.getAuthn().getThrottle();
                return new InMemoryBucketStore(throttle.getBucket4j());
            })
            .otherwiseProxy()
            .get();
    }
This is {@link CasBucket4jThrottlingAutoConfiguration}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-throttle-bucket4j/src/main/java/org/apereo/cas/config/CasBucket4jThrottlingAutoConfiguration.java