Attributes
- Companion
- class
- Source
- Cache.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Cache.type
Members list
Value members
Concrete methods
Constructs a new cache with the specified capacity, time to live, and lookup function.
Constructs a new cache with the specified capacity, time to live, and lookup function.
Attributes
- Source
- Cache.scala
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.
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.
Attributes
- Source
- Cache.scala
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.
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.
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.
Attributes
- Source
- Cache.scala