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, registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
void 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.ExecutionException
Copyright © 2015–2022 SciJava. All rights reserved.