Class DefaultCacheKeyService
java.lang.Object
fr.paris.lutece.portal.service.cache.DefaultCacheKeyService
- All Implemented Interfaces:
ICacheKeyService
Default cache key service
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCacheKeyService(List<String> listAllowedParameters, List<String> listIgnoredParameters) DefaultCacheKeyService -
Method Summary
Modifier and TypeMethodDescriptiongetKey(Map<String, String> mapParams, int nMode, LuteceUser user) Calculate the cache keyvoidsetAllowedParametersList(List<String> list) Sets the list of allowed parameters to include into the cache keyvoidsetIgnoredParametersList(List<String> list) Sets the list of ignored parameters not to include into the cache key
-
Constructor Details
-
DefaultCacheKeyService
public DefaultCacheKeyService(List<String> listAllowedParameters, List<String> listIgnoredParameters) DefaultCacheKeyService- Parameters:
listAllowedParameters- the list of allowed parameters to include into the cache keylistIgnoredParameters- the list of ignored parameters not to include into the cache key
-
-
Method Details
-
getKey
Calculate the cache key- Specified by:
getKeyin interfaceICacheKeyService- Parameters:
mapParams- A map of key/valuenMode- The modeuser- The LuteceUser- Returns:
- The calculated key
-
setAllowedParametersList
Sets the list of allowed parameters to include into the cache key- Specified by:
setAllowedParametersListin interfaceICacheKeyService- Parameters:
list- The list
-
setIgnoredParametersList
Sets the list of ignored parameters not to include into the cache key- Specified by:
setIgnoredParametersListin interfaceICacheKeyService- Parameters:
list- The list
-