Uses of Class
com.google.common.cache.CacheLoader
-
Packages that use CacheLoader Package Description com.google.common.cache This package contains caching utilities. -
-
Uses of CacheLoader in com.google.common.cache
Methods in com.google.common.cache that return CacheLoader Modifier and Type Method Description static <K,V>
CacheLoader<K,V>CacheLoader. asyncReloading(CacheLoader<K,V> loader, Executor executor)
static <K,V>
CacheLoader<K,V>CacheLoader. from(Function<K,V> function)
Returns a cache loader that usesfunction
to load keys, and without supporting either reloading or bulk loading.static <V> CacheLoader<Object,V>
CacheLoader. from(Supplier<V> supplier)
Returns a cache loader based on an existing supplier instance.Methods in com.google.common.cache with parameters of type CacheLoader Modifier and Type Method Description static <K,V>
CacheLoader<K,V>CacheLoader. asyncReloading(CacheLoader<K,V> loader, Executor executor)
<K1 extends K,V1 extends V>
LoadingCache<K1,V1>CacheBuilder. 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
.
-