Package org.eclipse.emf.cdo.spi.server
Interface MatchCache
public interface MatchCache
Caches boolean results of matcher evaluations.
Implementations must be thread-safe. A null result from get(Object) means that the key is not
cached; Boolean.TRUE and Boolean.FALSE represent cached matches and non-matches, respectively.
- Since:
- 4.27
- Author:
- Eike Stepper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe product group used to configure match-cache implementations. -
Method Summary
-
Field Details
-
PRODUCT_GROUP
The product group used to configure match-cache implementations.- See Also:
-
-
Method Details
-
get
Returns the cached result for the given key, ornullif no result is cached.- Parameters:
key- the matcher result key- Returns:
- the cached result, or
nullon a cache miss
-
put
Caches the result for the given key.- Parameters:
key- the matcher result keymatch- whether the matcher matched
-