Cache

trait Cache

This cache is used to memoize values for the Memoized effect

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

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

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

def reset(key: AnyRef): C

remove the given key

remove the given key