AppliedCache

harness.zio.AppliedCache
See theAppliedCache companion object
final case class AppliedCache[R, E, K, V](_cache: Cache[K, V], _get: K => ZIO[R, E, V])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def cache(k: K): ZIO[R, E, Unit]
def cacheAll(ks: K*): ZIO[R, E, Unit]
def cacheAllPar(ks: K*): ZIO[R, E, Unit]
def check(k: K, logLevel: LogLevel): UIO[Option[V]]
def dumpState(logLevel: LogLevel, showKey: K => String, showValue: V => String): UIO[Unit]
def getOrFetch(k: K, logLevel: LogLevel): ZIO[R, E, V]
def invalidate(k: K): UIO[Unit]
def invalidateAll(ks: K*): UIO[Unit]
def invalidateAll: UIO[Unit]
def invalidateExpired: UIO[Int]
def invalidateValues(f: V => Boolean): UIO[Unit]
def isCached(k: K): UIO[Boolean]
def put(k: K, v: V): UIO[Unit]
def putAll(pairs: (K, V)*): UIO[Unit]
def refreshAll: ZIO[R, E, Unit]
def refreshAllPar: ZIO[R, E, Unit]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product