object LoadingCache
- Alphabetic
- By Inheritance
- LoadingCache
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
CacheLoader[K, V] extends AnyRef
Mirrors com.google.common.cache.CacheLoader
- final class CacheLoaderBuilder extends AnyRef
- final class InvalidCacheLoadException extends RuntimeException
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
- def apply[K <: AnyRef, V <: AnyRef](loader: CacheLoader[K, V]): LoadingCache[K, V]
- def apply[K <: AnyRef, V <: AnyRef](loader: (K, Option[V]) ⇒ V): LoadingCache[K, V]
- def apply[K <: AnyRef, V <: AnyRef](loader: (K) ⇒ V): LoadingCache[K, V]
-
def
apply[K <: AnyRef, V <: AnyRef](initialCapacity: Int = -1, maxSize: Long = -1L, concurrencyLevel: Int = -1, expireAfterAccess: Duration = Duration.Inf, expireAfterWrite: Duration = Duration.Inf, refreshAfterWrite: Duration = Duration.Inf, recordStats: Boolean = false, weakKeys: Boolean = false, weakValues: Boolean = false, softValues: Boolean = false, removalListener: (RemovalNotification[K, V]) ⇒ Unit = null): CacheLoaderBuilder
A simplified wrapper around com.google.common.cache.CacheBuilder
A simplified wrapper around com.google.common.cache.CacheBuilder
- initialCapacity
Sets the minimum total size for the internal hash tables.
- maxSize
Specifies the maximum number of entries the cache may contain.
- concurrencyLevel
Guides the allowed concurrency among update operations.
- expireAfterAccess
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.
- expireAfterWrite
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
- refreshAfterWrite
Specifies that active entries are eligible for automatic refresh once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
- recordStats
Enable the accumulation of CacheStats during the operation of the cache.
- weakKeys
Specifies that each key (not value) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).
- weakValues
Specifies that each value (not key) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).
- softValues
Specifies that each value (not key) stored in the cache should be wrapped in a SoftReference (by default, strong references are used).
- removalListener
Specifies a listener instance that caches should notify each time an entry is removed for any reason.
-
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()
- object CacheLoader