trait Cache[K, V] extends AnyRef
A mapping from key to values.
It allows binding CachingVersionedLayers
to various cache providers.
- Alphabetic
- By Inheritance
- Cache
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
estimatedSize: Long
Returns the estimated size provided by the underlying cache, -1 if not available.
-
abstract
def
estimatedWeight: Long
Returns the estimated weight provided by the underlying cache, -1 if not available.
-
abstract
def
evictionCount: Long
Returns the eviction count provided by the underlying cache, -1 if not available.
-
abstract
def
evictionWeight: Long
Returns the eviction weight provided by the underlying cache, -1 if not available.
-
abstract
def
get(key: K): V
Returns the value associated to a key.
Returns the value associated to a key.
It returns null if the key is not present in the cache.
-
abstract
def
getAll(keys: Iterable[_ <: K]): Map[K, V]
Returns the values associated to the keys.
Returns the values associated to the keys.
It returns only the entries that are already present in the cache.
-
abstract
def
put(key: K, value: V): Unit
Associates a value with the provided key.
Associates a value with the provided key.
If the key is already present, it updates the value.
Concrete 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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()