Packages

object Cache

Wrapper for Google Guava's Cache classes

Source
Cache.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cache
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class CacheStats(stats: com.google.common.cache.CacheStats) extends Product with Serializable
  2. sealed abstract class RemovalCause extends AnyRef

    Mirrors com.google.common.cache.RemovalCause

  3. final case class RemovalNotification[K, V](key: K, value: V, cause: RemovalCause) extends Product with Serializable

    Mirrors com.google.common.cache.RemovalNotification

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. def apply[K, V](initialCapacity: Int = -1, maxSize: Long = -1L, concurrencyLevel: Int = -1, expireAfterAccess: Duration = Duration.Inf, expireAfterWrite: Duration = Duration.Inf, refreshAfterWrite: Duration = Duration.Inf, recordStats: Boolean = false, weakKeys: Boolean = false, weakValues: Boolean = false, softValues: Boolean = false, removalListener: (RemovalNotification[K, V]) => Unit = null): Cache[K, V]

    A simplified wrapper around com.google.common.cache.CacheBuilder

    A simplified wrapper around com.google.common.cache.CacheBuilder

    initialCapacity

    Sets the minimum total size for the internal hash tables.

    maxSize

    Specifies the maximum number of entries the cache may contain.

    concurrencyLevel

    Guides the allowed concurrency among update operations.

    expireAfterAccess

    Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.

    expireAfterWrite

    Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.

    refreshAfterWrite

    Specifies that active entries are eligible for automatic refresh once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.

    recordStats

    Enable the accumulation of CacheStats during the operation of the cache.

    weakKeys

    Specifies that each key (not value) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).

    weakValues

    Specifies that each value (not key) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).

    softValues

    Specifies that each value (not key) stored in the cache should be wrapped in a SoftReference (by default, strong references are used).

    removalListener

    Specifies a listener instance that caches should notify each time an entry is removed for any reason.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. case object COLLECTED extends RemovalCause with Product with Serializable
  21. case object EXPIRED extends RemovalCause with Product with Serializable
  22. case object EXPLICIT extends RemovalCause with Product with Serializable
  23. case object REPLACED extends RemovalCause with Product with Serializable
  24. case object SIZE extends RemovalCause with Product with Serializable

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped