Packages

class AutoFetchingCache[F[_], K, V] extends Lookup[F, K, V]

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

Instance Constructors

  1. new AutoFetchingCache(values: Ref[F, Map[K, CacheContent[F, V]]], defaultExpiration: Option[TimeSpec], refresh: Option[Refresh[F, K]], fetch: (K) => F[V])(implicit arg0: Temporal[F])

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 cancelReloads: F[Unit]

    Manually Cancel All Current Reloads

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val defaultExpiration: Option[TimeSpec]
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. val fetch: (K) => F[V]
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def insertWithTimeout(optionTimeout: Option[TimeSpec])(k: K, v: V): F[Unit]

    Insert an item in the cache, with an explicit expiration value.

    Insert an item in the cache, with an explicit expiration value.

    If the expiration value is None, the item will never expire. The default expiration value of the cache is ignored.

    The expiration value is relative to the current clockMonotonic time, i.e. it will be automatically added to the result of clockMonotonic for the supplied unit.

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def keys: F[List[K]]

    Return all keys present in the cache, including expired items.

  17. def lookup(k: K): F[Option[V]]

    Looks Up a Value in the Cache, since this cache is always populated it will always be Some.

    Looks Up a Value in the Cache, since this cache is always populated it will always be Some.

    Definition Classes
    AutoFetchingCache → Lookup
  18. def lookupCurrent(k: K): F[V]

    This method always returns as is expected.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def size: F[Int]

    Return the size of the cache, including expired items.

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Lookup[F, K, V]

Inherited from AnyRef

Inherited from Any

Ungrouped