ConcurrentHashMapCache

org.atnos.eff.ConcurrentHashMapCache
case class ConcurrentHashMapCache(map: ConcurrentHashMap[AnyRef, Eval[Any]]) extends Cache

Attributes

Source:
Cache.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Cache
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

type C = Cache

Attributes

Source:
Cache.scala

Value members

Concrete 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

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product