Interface AsCacheAwareStrategy<T>
- Type Parameters:
T- - the type of the source object
- All Known Subinterfaces:
AsSearchProfileCalculationStrategy<T>,AsSearchProfileLoadStrategy<T,R>
- All Known Implementing Classes:
AbstractAsSearchProfileCalculationStrategy,AbstractAsSearchProfileLoadStrategy,AsGenericCategoryAwareSearchProfileLoadStrategy,AsGenericSearchProfileCalculationStrategy,AsGenericSimpleSearchProfileLoadStrategy
public interface AsCacheAwareStrategy<T>
Strategies that implement this interface can have the results cached.
-
Method Summary
Modifier and TypeMethodDescriptiongetCacheKeyFragment(AsSearchProfileContext context, T object) Returns a cache key fragment.
-
Method Details
-
getCacheKeyFragment
Returns a cache key fragment. In most cases implementing strategies can simply returnnull. If strategies can have results that depend on the context, a different implementation should be provided.- Parameters:
context- - the search profile contextobject- - the source object- Returns:
- the key fragment
-