Packages

object Cache

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

Value Members

  1. def make[Key, Environment, Error, Value](capacity: Int, timeToLive: Duration, lookup: Lookup[Key, Environment, Error, Value]): URIO[Environment, Cache[Key, Error, Value]]

    Constructs a new cache with the specified capacity, time to live, and lookup function.

  2. def makeWith[Key, Environment, Error, Value](capacity: Int, lookup: Lookup[Key, Environment, Error, Value])(timeToLive: (Exit[Error, Value]) => Duration): 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 Exit value returned by the lookup function.