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

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

Introduction

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

The text is from its open source code.

Implementation

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

Method

ConcurrentMapasMap()
Returns a view of the entries stored in this cache as a thread-safe map.
voidcleanUp()
Performs any pending maintenance operations needed by the cache.
Vget(K key, Callable valueLoader)
Returns the value associated with key in this cache, obtaining that value from valueLoader if necessary.
VgetIfPresent(Object key)
Returns the value associated with key in this cache, or null if there is no cached value for key .
voidinvalidate(Object key)
Discards any cached value for key key .
voidinvalidateAll()
Discards all entries in the cache.
voidinvalidateAll(Iterable keys)
Discards any cached values for keys keys .
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.
longsize()
Returns the approximate number of entries in this cache.
CacheStatsstats()
Returns a current snapshot of this cache's cumulative statistics.