Packages

final class LoadingCache[K, V] extends Cache[K, V]

Wrapper around com.google.common.cache.LoadingCache

Source
Cache.scala
Linear Supertypes
Cache[K, V], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LoadingCache
  2. Cache
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LoadingCache(cache: com.google.common.cache.LoadingCache[K, V])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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
  6. def cleanUp(): Unit

    Performs any pending maintenance operations needed by the cache.

    Performs any pending maintenance operations needed by the cache.

    Definition Classes
    Cache
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def get(key: K): V

    Returns the value associated with key in this cache, first loading that value if necessary.

  11. 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
  12. def getAll(keys: Iterable[K]): Map[K, V]

    Returns a map of the values associated with keys, creating or retrieving those values if necessary.

  13. 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
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. 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
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def invalidate(key: K): Unit

    Discards any cached value for key key.

    Discards any cached value for key key.

    Definition Classes
    Cache
  18. def invalidateAll(keys: Iterable[K]): Unit

    Discards any cached values for keys keys.

    Discards any cached values for keys keys.

    Definition Classes
    Cache
  19. def invalidateAll(): Unit

    Discards all entries in the cache.

    Discards all entries in the cache.

    Definition Classes
    Cache
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def put(key: K, value: V): Unit

    Associates value with key in this cache.

    Associates value with key in this cache.

    Definition Classes
    Cache
  25. 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
  26. def refresh(key: K): Unit

    Loads a new value for key key, possibly asynchronously.

  27. def size(): Long

    Returns the approximate number of entries in this cache.

    Returns the approximate number of entries in this cache.

    Definition Classes
    Cache
  28. 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
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Cache[K, V]

Inherited from AnyRef

Inherited from Any

Ungrouped