Cache

sangria.util.Cache
See theCache companion object
trait Cache[Key, Value]

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ConcurrentHashMapCache[Key, Value]
class TrieMapCache[Key, Value]

Members list

Value members

Abstract methods

def apply(key: Key): Value
def clear(): Unit
def contains(key: Key): Boolean
def find(fn: (Key, Value) => Boolean): Option[(Key, Value)]
def forEachValue(fn: Value => Unit): Unit
def get(key: Key): Option[Value]
def getOrElse(key: Key, default: => Value): Value
def getOrElseUpdate(key: Key, fn: => Value): Value
def keyExists(fn: Key => Boolean): Boolean
def mapToSet[R](fn: (Key, Value) => R): Set[R]
def mapValues[R](fn: Value => R): Map[Key, R]
def remove(key: Key): Unit
def removeKeys(fn: Key => Boolean): Unit
def size: Int
def update(key: Key, value: Value): Unit