| Package | Description |
|---|---|
| org.nerd4j.utils.cache |
| Modifier and Type | Method and Description |
|---|---|
protected abstract CacheEntry<V> |
AbstractCacheProvider.doGet(CacheKey key)
Returns the cache entry related to the given key.
|
protected CacheEntry<V> |
HeapCacheProvider.doGet(CacheKey key)
Returns the cache entry related to the given key.
|
CacheEntry<V> |
EmptyCacheProvider.doGet(CacheKey key)
Returns the cache entry related to the given key.
|
CacheEntry<V> |
AbstractCacheProvider.get(CacheKey key)
Returns the cache entry related to the given key.
|
protected CacheEntry<V> |
AbstractSelfLoadingCache.get(CacheKey key)
Returns the value from the cache if available
and
null otherwise. |
CacheEntry<V> |
CacheProvider.get(CacheKey key)
Returns the cache entry related to the given key.
|
protected CacheEntry<V> |
AbstractCacheProvider.getEntry(V value,
long duration)
Returns a new cache entry with the given value that will
expire after the given amount of milliseconds
|
static <V> CacheEntry<V> |
CacheEntry.of(V value,
Instant expiration)
Creates a new
CacheEntry with the given value and duration. |
static <V> CacheEntry<V> |
CacheEntry.of(V value,
long expiration)
Creates a new
CacheEntry with the given value and duration. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
AbstractCacheProvider.doPut(CacheKey key,
CacheEntry<V> entry,
long duration)
Binds the given entry to the given key and
put it into the underlying cache.
|
protected void |
HeapCacheProvider.doPut(CacheKey key,
CacheEntry<V> entry,
long duration)
Binds the given entry to the given key and
put it into the underlying cache.
|
void |
EmptyCacheProvider.doPut(CacheKey key,
CacheEntry<V> entry,
long duration)
Binds the given entry to the given key and
put it into the underlying cache.
|
protected V |
AbstractSelfLoadingCache.update(CacheKey key,
CacheEntry<V> entry,
DataProvider<V> dataProvider)
Updates the cache for the given key and the related value.
|
Copyright © 2011–2020 Nerd4j. All rights reserved.