Cache

trait Cache

This cache is used to memoize values for the Memoized effect

Source:
Cache.scala
class Object
trait Matchable
class Any

Type members

Types

type C <: Cache

Value members

Abstract methods

def get[V](key: AnyRef): Option[V]

get a value for a given key

get a value for a given key

Source:
Cache.scala
def memo[V](key: AnyRef, value: => V): V

store a value for a given key, subsequent calls to memo will return the same value

store a value for a given key, subsequent calls to memo will return the same value

Source:
Cache.scala
def put[V](key: AnyRef, value: V): V

put a value for a given key and override the previous value if present

put a value for a given key and override the previous value if present

Source:
Cache.scala
def reset(key: AnyRef): C

remove the given key

remove the given key

Source:
Cache.scala