class AutoFetchingCache[F[_], K, V] extends Lookup[F, K, V]
- Source
- AutoFetchingCache.scala
- Alphabetic
- By Inheritance
- AutoFetchingCache
- Lookup
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
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 cancelReloads: F[Unit]
Manually Cancel All Current Reloads
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val defaultExpiration: Option[TimeSpec]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val fetch: (K) => F[V]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keys: F[List[K]]
Return all keys present in the cache, including expired items.
- 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
- def lookupCurrent(k: K): F[V]
This method always returns as is expected.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def size: F[Int]
Return the size of the cache, including expired items.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()