| Package | Description |
|---|---|
| org.nerd4j.utils.cache |
| Modifier and Type | Field and Description |
|---|---|
protected CacheConfig |
AbstractSelfLoadingCache.config
Configurations to be used to define the cache behavior.
|
| Modifier and Type | Method and Description |
|---|---|
static CacheConfig |
CacheConfig.getDefault()
Creates a new
CacheConfig with the following
default values:
getCacheDuration() = DEFAULT_CACHE_DURATION
getTouchDuration() = DEFAULT_TOUCH_DURATION
isAsyncInsert() = false
isAsyncUpdate() = true
isThrowCacheProviderExceptions() = false
|
static CacheConfig |
CacheConfig.of(boolean asyncInsert,
boolean asyncUpdate,
boolean throwCacheProviderExceptions)
Creates a new
CacheConfig with the default cache and touch
durations and given values. |
static CacheConfig |
CacheConfig.of(long cacheDuration,
long touchDuration,
boolean asyncInsert,
boolean asyncUpdate,
boolean throwCacheProviderExceptions)
Creates a new
CacheConfig with the given values. |
| Constructor and Description |
|---|
AbstractSelfLoadingCache(CacheConfig cacheConfig,
CacheProvider<V> cacheProvider)
Constructor with parameters.
|
Copyright © 2011–2020 Nerd4j. All rights reserved.