use of io.github.bucket4j.grid.infinispan.InfinispanProxyManager in project bucket4j-spring-boot-starter by MarcGiffing.
the class InfinispanJCacheCacheResolver method resolve.
public ProxyManager<String> resolve(String cacheName) {
Cache<Object, Object> cache = cacheContainer.getCache(cacheName);
if (cache == null) {
throw new JCacheNotFoundException(cacheName);
}
FunctionalMapImpl functionalMap = FunctionalMapImpl.create(cache.getAdvancedCache());
return new InfinispanProxyManager<>(ReadWriteMapImpl.create(functionalMap));
}
Aggregations