ResPoolCache

zhttp.clients.ResPoolCache$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

class CacheEntry[T](var cached_val: T, var ts: Long)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class LRUQEntry[K](val timestamp: Long, val key: K)(implicit ord: K => Ordered[K]) extends Ordered[LRUQEntry[K]]

Attributes

Graph
Supertypes
trait Ordered[LRUQEntry[K]]
trait Comparable[LRUQEntry[K]]
class Object
trait Matchable
class Any
trait Service[K, V, R]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Types

type ResPoolCache[K, V, R] = Service[K, V, R]

Value members

Concrete methods

def get[K, V, R](key: K)(implicit tagged: Tag[R], tagged1: Tag[K], tagged2: Tag[V]): ZIO[Service[K, V, R], Throwable, Option[V]]
def info[K, V, R](implicit tagged: Tag[R], tagged1: Tag[K], tagged2: Tag[V]): ZIO[Service[K, V, R], Throwable, String]
def make[K, V, R](timeToLiveMs: Int, limit: Int, updatef: (R, K) => ZIO[Any, Throwable, Option[V]])(implicit ord: K => Ordered[K], tagged: Tag[R], tagged1: Tag[K], tagged2: Tag[V]): ZLayer[Service[R], Nothing, Service[K, V, R]]
def makeService[K, V, R](rp: Service[R], timeToLiveMs: Int, limit: Int, updatef: (R, K) => ZIO[Any, Throwable, Option[V]], q: Queue[K])(implicit ord: K => Ordered[K], tagged: Tag[R], tagged1: Tag[K], tagged2: Tag[V]): Service[K, V, R]

Concrete fields

val COMMON_FACTOR: Int