public class NoOpGraphEngineCache<Key extends ComputeKey<Value>,Value extends ComputeResult> extends Object implements GraphEngineCache<Key,Value>
| Constructor and Description |
|---|
NoOpGraphEngineCache() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Value> |
get(Key key)
Optionally returns the cached result given the key
|
void |
put(Key key,
Value value)
Offers the given key and value for caching
|
public Optional<Value> get(Key key)
GraphEngineCacheget in interface GraphEngineCache<Key extends ComputeKey<Value>,Value extends ComputeResult>key - The desired keypublic void put(Key key, Value value)
GraphEngineCacheput in interface GraphEngineCache<Key extends ComputeKey<Value>,Value extends ComputeResult>key - the key to cachevalue - the value to cache