final class LoadingCache[K, V] extends Cache[K, V]
- Alphabetic
- By Inheritance
- LoadingCache
- Cache
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LoadingCache(cache: com.google.common.cache.LoadingCache[K, V])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asMap(): ConcurrentMap[K, V]
Returns a view of the entries stored in this cache as a thread-safe map.
Returns a view of the entries stored in this cache as a thread-safe map.
- Definition Classes
- Cache
- def cleanUp(): Unit
Performs any pending maintenance operations needed by the cache.
Performs any pending maintenance operations needed by the cache.
- Definition Classes
- Cache
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def get(key: K): V
Returns the value associated with key in this cache, first loading that value if necessary.
- def get(key: K, valueLoader: => V): V
Returns the value associated with key in this cache, obtaining that value from valueLoader if necessary.
Returns the value associated with key in this cache, obtaining that value from valueLoader if necessary.
- Definition Classes
- Cache
- def getAll(keys: Iterable[K]): Map[K, V]
Returns a map of the values associated with keys, creating or retrieving those values if necessary.
- def getAllPresent(keys: Iterable[K]): Map[K, V]
Returns a map of the values associated with keys in this cache.
Returns a map of the values associated with keys in this cache.
- Definition Classes
- Cache
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getIfPresent(key: K): Option[V]
Returns the value associated with key in this cache, or None if there is no cached value for key.
Returns the value associated with key in this cache, or None if there is no cached value for key.
- Definition Classes
- Cache
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def invalidate(key: K): Unit
Discards any cached value for key key.
Discards any cached value for key key.
- Definition Classes
- Cache
- def invalidateAll(keys: Iterable[K]): Unit
Discards any cached values for keys keys.
Discards any cached values for keys keys.
- Definition Classes
- Cache
- def invalidateAll(): Unit
Discards all entries in the cache.
Discards all entries in the cache.
- Definition Classes
- Cache
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def put(key: K, value: V): Unit
Associates value with key in this cache.
Associates value with key in this cache.
- Definition Classes
- Cache
- def putAll(entries: Iterable[(K, V)]): Unit
Copies all of the mappings from the specified map to the cache.
Copies all of the mappings from the specified map to the cache.
- Definition Classes
- Cache
- def refresh(key: K): Unit
Loads a new value for key key, possibly asynchronously.
- def size(): Long
Returns the approximate number of entries in this cache.
Returns the approximate number of entries in this cache.
- Definition Classes
- Cache
- def stats(): CacheStats
Returns a current snapshot of this cache's cumulative statistics.
Returns a current snapshot of this cache's cumulative statistics.
- Definition Classes
- Cache
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])