Cache

trait Cache[A]

Cache for a Dummy or Dummy.WithName value.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def all: Map[String, A]

Returns all values stored in the cache

Returns all values stored in the cache

def getOrSet(name: String, creator: String => A): A

Gets the value for key name from the cache or creates one using the provided creator.

Gets the value for key name from the cache or creates one using the provided creator.