public final class MachineCache
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MachineCache.ValueResolver<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getOrPutIfMissing(java.lang.String key,
MachineCache.ValueResolver<T> valueResolver)
Gets the value from machine cache region, if value is missing the value resolver will be executed
and the result will be put to the cache.
|
static void |
removeAll()
Clears the cache.
|
public static <T> T getOrPutIfMissing(java.lang.String key,
MachineCache.ValueResolver<T> valueResolver)
key - key for the valuevalueResolver - value resolver to use for cases when value is missing in cachepublic static void removeAll()