sealed class Cache[K, V] extends AnyRef
Wrapper around com.google.common.cache.Cache
- Alphabetic
- By Inheritance
- Cache
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Cache(cache: com.google.common.cache.Cache[K, V])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asMap(): ConcurrentMap[K, V]
Returns a view of the entries stored in this cache as a thread-safe map.
- def cleanUp(): Unit
Performs any pending maintenance operations needed by the cache.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get(key: K, valueLoader: => V): V
Returns the value associated with key in this cache, obtaining that value from valueLoader if necessary.
- def getAllPresent(keys: Iterable[K]): Map[K, V]
Returns a map of the values associated with keys in this cache.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getIfPresent(key: K): Option[V]
Returns the value associated with key in this cache, or None if there is no cached value for key.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def invalidate(key: K): Unit
Discards any cached value for key key.
- def invalidateAll(keys: Iterable[K]): Unit
Discards any cached values for keys keys.
- def invalidateAll(): Unit
Discards all entries in the cache.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def put(key: K, value: V): Unit
Associates value with key in this cache.
- def putAll(entries: Iterable[(K, V)]): Unit
Copies all of the mappings from the specified map to the cache.
- def size(): Long
Returns the approximate number of entries in this cache.
- def stats(): CacheStats
Returns a current snapshot of this cache's cumulative statistics.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()