Class CaffeineNearCache<K,V>
java.lang.Object
org.wildfly.clustering.cache.infinispan.remote.near.CaffeineNearCache<K,V>
- Type Parameters:
K- cache key typeV- cache value type
- All Implemented Interfaces:
Iterable<Map.Entry<K,,org.infinispan.client.hotrod.MetadataValue<V>>> org.infinispan.client.hotrod.near.NearCache<K,V>
public class CaffeineNearCache<K,V>
extends Object
implements org.infinispan.client.hotrod.near.NearCache<K,V>
Near cache implementation based on a Caffeine cache.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCaffeineNearCache(com.github.benmanes.caffeine.cache.Cache<K, org.infinispan.client.hotrod.MetadataValue<V>> cache) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()org.infinispan.client.hotrod.MetadataValue<V>iterator()booleanputIfAbsent(K key, org.infinispan.client.hotrod.MetadataValue<V> value) booleanbooleanbooleanreplace(K key, org.infinispan.client.hotrod.MetadataValue<V> prevValue, org.infinispan.client.hotrod.MetadataValue<V> newValue) intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CaffeineNearCache
-
-
Method Details
-
putIfAbsent
-
remove
-
remove
-
replace
-
get
-
clear
public void clear() -
size
public int size() -
iterator
-