T - The type of the cached itempublic class MemoryItemCache<T> extends AbstractItemCache<T>
ItemCache that stores the retrieved item
in memory.| Constructor and Description |
|---|
MemoryItemCache(ItemValueRetriever<T> itemValueRetriever)
Creates a new memory item cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the cache.
|
T |
get()
Returns the cached item.
|
retrieveValuepublic MemoryItemCache(ItemValueRetriever<T> itemValueRetriever)
itemValueRetriever - The item value retrieverpublic T get() throws CacheException
CacheException - if the item was not cached before and retrieving the item for
the first time failedpublic void clear()
Copyright © 2026. All rights reserved.