Uses of Interface
com.github.benmanes.caffeine.cache.AsyncCacheLoader
Packages that use AsyncCacheLoader
Package
Description
This package contains in-memory caching functionality.
-
Uses of AsyncCacheLoader in com.github.benmanes.caffeine.cache
Subinterfaces of AsyncCacheLoader in com.github.benmanes.caffeine.cacheModifier and TypeInterfaceDescriptioninterfaceCacheLoader<K,V extends @Nullable Object> Computes or retrieves values, based on a key, for use in populating aLoadingCacheorAsyncLoadingCache.Methods in com.github.benmanes.caffeine.cache that return AsyncCacheLoaderModifier and TypeMethodDescriptionstatic <K,V extends @Nullable Object>
AsyncCacheLoader<K, V> AsyncCacheLoader.bulk(BiFunction<? super Set<? extends K>, ? super Executor, ? extends CompletableFuture<? extends Map<? extends K, ? extends @NonNull V>>> mappingFunction) Returns an asynchronous cache loader that delegates to the supplied mapping function for retrieving the values.static <K,V extends @Nullable Object>
AsyncCacheLoader<K, V> AsyncCacheLoader.bulk(Function<? super Set<? extends K>, ? extends Map<? extends K, ? extends @NonNull V>> mappingFunction) Returns an asynchronous cache loader that delegates to the supplied mapping function for retrieving the values.Methods in com.github.benmanes.caffeine.cache with parameters of type AsyncCacheLoaderModifier and TypeMethodDescription<K1 extends K,V1 extends @Nullable V>
AsyncLoadingCache<K1, V1> Caffeine.buildAsync(AsyncCacheLoader<? super K1, V1> loader) Builds a cache, which either returns aCompletableFuturealready loaded or currently computing the value for a given key, or atomically computes the value asynchronously through a supplied mapping function or the suppliedAsyncCacheLoader.