public final class CaffeinatedGuava extends Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V,K1 extends K,V1 extends V> |
build(@NonNull Caffeine<K,V> builder)
Returns a Caffeine cache wrapped in a Guava
Cache facade. |
static <K,V,K1 extends K,V1 extends V> |
build(@NonNull Caffeine<K,V> builder,
@NonNull com.google.common.cache.CacheLoader<? super K1,V1> loader)
Returns a Caffeine cache wrapped in a Guava
LoadingCache facade. |
static <K,V,K1 extends K,V1 extends V> |
build(@NonNull Caffeine<K,V> builder,
CacheLoader<? super K1,V1> loader)
Returns a Caffeine cache wrapped in a Guava
LoadingCache facade. |
public static <K,V,K1 extends K,V1 extends V> @NonNull com.google.common.cache.Cache<K1,V1> build(@NonNull Caffeine<K,V> builder)
Cache facade.builder - the configured cache builderpublic static <K,V,K1 extends K,V1 extends V> @NonNull com.google.common.cache.LoadingCache<K1,V1> build(@NonNull Caffeine<K,V> builder, @NonNull com.google.common.cache.CacheLoader<? super K1,V1> loader)
LoadingCache facade.builder - the configured cache builderloader - the cache loader used to obtain new valuespublic static <K,V,K1 extends K,V1 extends V> @NonNull com.google.common.cache.LoadingCache<K1,V1> build(@NonNull Caffeine<K,V> builder, CacheLoader<? super K1,V1> loader)
LoadingCache facade.builder - the configured cache builderloader - the cache loader used to obtain new values