object Cache
- Alphabetic
- By Inheritance
- Cache
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def make[Key, Environment, Error, Value](capacity: Int, timeToLive: java.time.Duration, lookup: Lookup[Key, Environment, Error, Value])(implicit trace: Trace): URIO[Environment, Cache[Key, Error, Value]]
Constructs a new cache with the specified capacity, time to live, and lookup function.
- def makeWith[Key, Environment, Error, Value](capacity: Int, lookup: Lookup[Key, Environment, Error, Value])(timeToLive: (Exit[Error, Value]) => java.time.Duration)(implicit trace: Trace): URIO[Environment, Cache[Key, Error, Value]]
Constructs a new cache with the specified capacity, time to live, and lookup function, where the time to live can depend on the
Exitvalue returned by the lookup function. - def makeWithKey[In, Key, Environment, Error, Value](capacity: Int, lookup: Lookup[In, Environment, Error, Value])(timeToLive: (Exit[Error, Value]) => java.time.Duration, keyBy: (In) => Key)(implicit trace: Trace): URIO[Environment, Cache[In, Error, Value]]
Constructs a new cache with the specified capacity, time to live, and lookup function, where the time to live can depend on the
Exitvalue returned by the lookup function.Constructs a new cache with the specified capacity, time to live, and lookup function, where the time to live can depend on the
Exitvalue returned by the lookup function.This variant also allows specifying a custom keying function that will be used to to convert the input of the lookup function into the key in the underlying cache. This can be useful when the input to the lookup function is large and you do not want to store it in the cache.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])