Java com.google.common.cache LoadingCache fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.cache LoadingCache fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.cache LoadingCache.

The text is from its open source code.

Implementation

com.google.common.cache.LoadingCache has the following implementations.
Click this link to see all its implementation.

Method

Vapply(K key)
ConcurrentMapasMap()

Note that although the view is modifiable, no method on the returned map will ever cause entries to be automatically loaded.

voidcleanUp()
Performs any pending maintenance operations needed by the cache.
Vget(K key)
Returns the value associated with key in this cache, first loading that value if necessary.
ImmutableMapgetAll(Iterable keys)
Returns a map of the values associated with keys , creating or retrieving those values if necessary.
VgetIfPresent(Object key)
Returns the value associated with key in this cache, or null if there is no cached value for key .
VgetUnchecked(K key)
Returns the value associated with key in this cache, first loading that value if necessary.
voidinvalidate(Object key)
Discards any cached value for key key .
voidinvalidateAll()
Discards all entries in the cache.
voidput(K key, V value)
Associates value with key in this cache.
voidputAll(Map m)
Copies all of the mappings from the specified map to the cache.
voidrefresh(K key)
Loads a new value for key key , possibly asynchronously.
longsize()
Returns the approximate number of entries in this cache.
CacheStatsstats()
Returns a current snapshot of this cache's cumulative statistics.