Interface ConfigurationModelCacheStrategy
- All Known Implementing Classes:
DefaultConfigurationModelCacheStrategyImpl
public interface ConfigurationModelCacheStrategy
This strategy manages the caching of the product configuration model itself.
-
Method Summary
Modifier and TypeMethodDescriptiongetConfigurationModelEngineState(String configId) Retrieves the configuration model engine statevoidpurge()purges the cachesvoidremoveConfigAttributeState(String configId) Removes the given configuration engine state and price summary model from read cache for engine statevoidsetConfigurationModelEngineState(String configId, ConfigModel configModel) Puts the given config model into the engine state read cache
-
Method Details
-
getConfigurationModelEngineState
Retrieves the configuration model engine state- Parameters:
configId- id of the configuration- Returns:
- Configuration model
-
setConfigurationModelEngineState
Puts the given config model into the engine state read cache- Parameters:
configId- unique config idconfigModel- model to cache
-
purge
void purge()purges the caches -
removeConfigAttributeState
Removes the given configuration engine state and price summary model from read cache for engine state- Parameters:
configId- unique config id
-