public class RuleAnalysisCacheImpl extends Object implements RuleAnalysisCache
Constructor and Description |
---|
RuleAnalysisCacheImpl() |
Modifier and Type | Method and Description |
---|---|
Optional<RuleAnalysisResult> |
get(RuleAnalysisKey key)
Optionally returns the cached result given the key
|
void |
put(RuleAnalysisKey key,
RuleAnalysisResult ruleAnalysisResult)
Offers the given key and value for caching
|
public Optional<RuleAnalysisResult> get(RuleAnalysisKey key)
GraphEngineCache
get
in interface GraphEngineCache<RuleAnalysisKey,RuleAnalysisResult>
key
- The desired keypublic void put(RuleAnalysisKey key, RuleAnalysisResult ruleAnalysisResult)
GraphEngineCache
put
in interface GraphEngineCache<RuleAnalysisKey,RuleAnalysisResult>
key
- the key to cacheruleAnalysisResult
- the value to cache