com.giffing.bucket4j.spring.boot.starter.config.cache.CacheResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bucket4j-spring-boot-starter Show documentation
Show all versions of bucket4j-spring-boot-starter Show documentation
Spring Boot Starter für Bucket4J
package com.giffing.bucket4j.spring.boot.starter.config.cache;
import io.github.bucket4j.distributed.proxy.ProxyManager;
/**
* The CacheResolver is used to resolve Bucket4js {@link ProxyManager} by
* a given cache name. Each cache implementation should implement this interface.
*
* But the interface shouldn't be implemented directly. The CacheResolver is divided
* to the blocking {@link SyncCacheResolver} and the asynchronous {@link AsyncCacheResolver}.
*
*/
public interface CacheResolver {
ProxyManagerWrapper resolve(String cacheName);
}