You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Bean
@Primary
public SyncCacheResolver bucket4jCacheResolver() {
final CachingProvider cachingProvider = Caching.getCachingProvider();
CaffeineConfiguration<Object, Object> configuration = new CaffeineConfiguration<>();
configuration.setExpireAfterWrite(OptionalLong.of(Duration.ofHours(1).toNanos()));
configuration.setMaximumSize(OptionalLong.of(1000000));
CacheManager cacheManager = cachingProvider.getCacheManager();
cacheManager.createCache("rateLimiting", configuration);
return new JCacheCacheResolver(cacheManager);
}
Hello! After implementing this config still have ChacheResolver exception
Description:
Parameter 2 of constructor in com.giffing.bucket4j.spring.boot.starter.Bucket4jStartupCheckConfiguration required a bean of type 'com.giffing.bucket4j.spring.boot.starter.config.cache.AsyncCacheResolver' that could not be found.
Action:
Consider defining a bean of type 'com.giffing.bucket4j.spring.boot.starter.config.cache.AsyncCacheResolver' in your configuration.
The text was updated successfully, but these errors were encountered:
Hello! After implementing this config still have ChacheResolver exception
Description:
Parameter 2 of constructor in com.giffing.bucket4j.spring.boot.starter.Bucket4jStartupCheckConfiguration required a bean of type 'com.giffing.bucket4j.spring.boot.starter.config.cache.AsyncCacheResolver' that could not be found.
Action:
Consider defining a bean of type 'com.giffing.bucket4j.spring.boot.starter.config.cache.AsyncCacheResolver' in your configuration.
The text was updated successfully, but these errors were encountered: