K - keyV - valuepublic final class SingleCache<K,V>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_LOADING_CACHE_EXPIRY_IN_SECONDS |
static long |
DEFAULT_LOADING_CACHE_SIZE_LIMIT |
| Constructor and Description |
|---|
SingleCache(com.google.common.cache.Cache<K,V> dataCache,
rx.functions.Func1<K,rx.Single<V>> loader) |
SingleCache(com.google.common.cache.Cache<K,V> dataCache,
rx.functions.Func1<K,rx.Single<V>> loader,
long loadingCacheExpiryDuration,
java.util.concurrent.TimeUnit loadingCacheExpiryTimeUnit,
long loadingCacheSizeLimit) |
| Modifier and Type | Method and Description |
|---|---|
rx.Single<V> |
get(K key) |
public static final long DEFAULT_LOADING_CACHE_EXPIRY_IN_SECONDS
public static final long DEFAULT_LOADING_CACHE_SIZE_LIMIT