Packages

abstract class ManagedCache[-Key, +Error, +Value] extends AnyRef

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

Instance Constructors

  1. new ManagedCache()

Abstract Value Members

  1. abstract def cacheStats: UIO[CacheStats]

    Returns statistics for this cache.

  2. abstract def contains(key: Key): UIO[Boolean]

    Return whether a resource associated with the specified key exists in the cache.

    Return whether a resource associated with the specified key exists in the cache. Sometime contains can return true if the resource is currently being created but not yet totally created

  3. abstract def entryStats(key: Key): UIO[Option[EntryStats]]

    Return statistics for the specified entry.

  4. abstract def get(key: Key): Managed[Error, Value]

    Gets the value from the cache if it exists or otherwise computes it, the release action signals to the cache that the value is no longer being used and can potentially be finalized subject to the policies of the cache

  5. abstract def invalidate(key: Key): UIO[Unit]

    Invalidates the resource associated with the specified key.

  6. abstract def invalidateAll: UIO[Unit]

    Invalidates all values in the cache.

  7. abstract def refresh(key: Key): IO[Error, Unit]

    Force the reuse of the lookup function to compute the returned managed associated with the specified key immediately Once the new resource is recomputed, the old resource associated to the key is cleaned (once all fiber using it are done with it) During the time the new resource is computed, concurrent call the .get will use the old resource if this one is not expired

  8. abstract def size: UIO[Int]

    Returns the approximate number of values in the cache.

Concrete 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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  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()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped