Package | Description |
---|---|
com.github.benmanes.caffeine.cache |
This package contains caching utilities.
|
Modifier and Type | Method and Description |
---|---|
<K1 extends K,V1 extends V> |
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 supplied
CacheLoader . |
<K1 extends K,V1 extends V> |
Caffeine.buildAsync(CacheLoader<? 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 CacheLoader . |
Copyright © 2019. All rights reserved.