Example usage for Java com.google.common.cache LoadingCache fields, constructors, methods, implement or subclass
The text is from its open source code.
V | apply(K key) |
ConcurrentMap | asMap() Note that although the view is modifiable, no method on the returned map will ever cause entries to be automatically loaded. |
void | cleanUp() Performs any pending maintenance operations needed by the cache. |
V | get(K key) Returns the value associated with key in this cache, first loading that value if necessary. |
ImmutableMap | getAll(Iterable extends K> keys) Returns a map of the values associated with keys , creating or retrieving those values if necessary. |
V | getIfPresent(Object key) Returns the value associated with key in this cache, or null if there is no cached value for key . |
V | getUnchecked(K key) Returns the value associated with key in this cache, first loading that value if necessary. |
void | invalidate(Object key) Discards any cached value for key key . |
void | invalidateAll() Discards all entries in the cache. |
void | put(K key, V value) Associates value with key in this cache. |
void | putAll(Map extends K, ? extends V> m) Copies all of the mappings from the specified map to the cache. |
void | refresh(K key) Loads a new value for key key , possibly asynchronously. |
long | size() Returns the approximate number of entries in this cache. |
CacheStats | stats() Returns a current snapshot of this cache's cumulative statistics. |