Uses of Interface
com.github.benmanes.caffeine.cache.CacheLoader
Packages that use CacheLoader
Package
Description
This package contains in-memory caching functionality.
-
Uses of CacheLoader in com.github.benmanes.caffeine.cache
Methods in com.github.benmanes.caffeine.cache that return CacheLoaderModifier and TypeMethodDescriptionstatic <K,V extends @Nullable Object>
CacheLoader<K, V> CacheLoader.bulk(Function<? super Set<? extends K>, ? extends Map<? extends K, ? extends @NonNull V>> mappingFunction) Returns a cache loader that delegates to the supplied mapping function for retrieving the values.Methods in com.github.benmanes.caffeine.cache with parameters of type CacheLoaderModifier and TypeMethodDescription<K1 extends K,V1 extends @Nullable V>
LoadingCache<K1, V1> Caffeine.build(CacheLoader<? super K1, V1> loader) Builds a cache, which either returns an already-loaded value for a given key or atomically computes or retrieves it using the suppliedCacheLoader.<K1 extends K,V1 extends @Nullable V>
AsyncLoadingCache<K1, V1> Caffeine.buildAsync(CacheLoader<? 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 suppliedCacheLoader.