public interface CacheService extends SciJavaService
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object key) |
default <V> V |
get(Object key,
Callable<V> valueLoader) |
void |
put(Object key,
Object value)
Stores the given object in the cache.
|
initialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposevoid put(Object key, Object value)
key - A key.value - A value.Object get(Object key)
key - A keydefault <V> V get(Object key, Callable<V> valueLoader) throws ExecutionException
key - A keyvalueLoader - A value loader which will be used if null is returned
for the given key.ExecutionExceptionCopyright © 2015–2022 SciJava. All rights reserved.