Uses of Interface
com.github.benmanes.caffeine.cache.CacheLoader
Packages that use CacheLoader
Package
Description
This package contains caching utilities.
-
Uses of CacheLoader in com.github.benmanes.caffeine.cache
Methods in com.github.benmanes.caffeine.cache with parameters of type CacheLoaderModifier and TypeMethodDescription<K1 extends K, V1 extends V>
@NonNull LoadingCache<K1, V1> Caffeine.build(@NonNull 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 V>
@NonNull AsyncLoadingCache<K1, V1> Caffeine.buildAsync(@NonNull 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. -
Uses of CacheLoader in com.github.benmanes.caffeine.guava
Methods in com.github.benmanes.caffeine.guava with parameters of type CacheLoaderModifier and TypeMethodDescriptionstatic <K, V, K1 extends K, V1 extends V>
@NonNull com.google.common.cache.LoadingCache<K1, V1> CaffeinatedGuava.build(@NonNull Caffeine<K, V> builder, @NonNull CacheLoader<? super K1, V1> loader) Returns a Caffeine cache wrapped in a GuavaLoadingCachefacade. -
Uses of CacheLoader in com.github.benmanes.caffeine.jcache.integration
Classes in com.github.benmanes.caffeine.jcache.integration that implement CacheLoaderModifier and TypeClassDescriptionfinal classJCacheLoaderAdapter<K,V> An adapter from a JCache cache loader to Caffeine's.