Package play.cache.caffeine
Class NamedCaffeineCache<K,V>
java.lang.Object
play.cache.caffeine.NamedCaffeineCache<K,V>
- All Implemented Interfaces:
com.github.benmanes.caffeine.cache.AsyncCache<K,V>
public class NamedCaffeineCache<K,V>
extends Object
implements com.github.benmanes.caffeine.cache.AsyncCache<K,V>
-
Constructor Summary
ConstructorsConstructorDescriptionNamedCaffeineCache(String name, com.github.benmanes.caffeine.cache.AsyncCache<K, V> cache) -
Method Summary
Modifier and TypeMethodDescriptionasMap()get(K key, BiFunction<? super K, ? super Executor, ? extends CompletableFuture<? extends V>> mappingFunction) getAll(Iterable<? extends K> keys, BiFunction<? super Set<? extends K>, ? super Executor, ? extends CompletableFuture<? extends Map<? extends K, ? extends V>>> mappingFunction) getAll(Iterable<? extends K> keys, Function<? super Set<? extends K>, ? extends Map<? extends K, ? extends V>> mappingFunction) getIfPresent(K key) getName()voidput(K key, CompletableFuture<? extends V> value)
-
Constructor Details
-
NamedCaffeineCache
-
-
Method Details
-
getName
-
getIfPresent
-
get
-
get
@Nonnull public CompletableFuture<V> get(@Nonnull K key, @Nonnull BiFunction<? super K, ? super Executor, ? extends CompletableFuture<? extends V>> mappingFunction) -
getAll
-
getAll
@Nonnull public CompletableFuture<Map<K,V>> getAll(@Nonnull Iterable<? extends K> keys, @Nonnull BiFunction<? super Set<? extends K>, ? super Executor, ? extends CompletableFuture<? extends Map<? extends K, ? extends V>>> mappingFunction) -
put
-
asMap
-
synchronous
-