Package | Description |
---|---|
com.github.benmanes.caffeine.cache |
This package contains caching utilities.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CacheLoader<K,V>
Computes or retrieves values, based on a key, for use in populating a
LoadingCache or
AsyncLoadingCache . |
Modifier and Type | Method and Description |
---|---|
<K1 extends K,V1 extends V> |
Caffeine.buildAsync(AsyncCacheLoader<? super K1,V1> loader)
Builds a cache, which either returns a
CompletableFuture already loaded or currently
computing the value for a given key, or atomically computes the value asynchronously through a
supplied mapping function or the supplied AsyncCacheLoader . |
Copyright © 2017. All rights reserved.