Class DefaultCacheKeyService

    • Constructor Detail

      • DefaultCacheKeyService

        public DefaultCacheKeyService()
    • Method Detail

      • getKey

        public String getKey​(Map<String,​String> mapParams,
                             int nMode,
                             LuteceUser user)
        Calculate the cache key
        Specified by:
        getKey in interface ICacheKeyService
        Parameters:
        mapParams - A map of key/value
        nMode - The mode
        user - The LuteceUser
        Returns:
        The calculated key
      • setAllowedParametersList

        public void setAllowedParametersList​(List<String> list)
        Sets the list of allowed parameters to include into the cache key
        Specified by:
        setAllowedParametersList in interface ICacheKeyService
        Parameters:
        list - The list
      • setIgnoredParametersList

        public void setIgnoredParametersList​(List<String> list)
        Sets the list of ignored parameters not to include into the cache key
        Specified by:
        setIgnoredParametersList in interface ICacheKeyService
        Parameters:
        list - The list