Cache

org.atnos.eff.Cache
trait Cache

This cache is used to memoize values for the Memoized effect

Attributes

Source:
Cache.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Type members

Types

type C <: Cache

Attributes

Source:
Cache.scala

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

Attributes

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

Attributes

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

Attributes

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

remove the given key

remove the given key

Attributes

Source:
Cache.scala