Class PathCacheService

    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: LuteceService
        Returns the Service name
        Specified by:
        getName in interface LuteceService
        Returns:
        The name as a String
      • getKey

        public java.lang.String getKey​(java.lang.String strXPageName,
                                       int nMode,
                                       javax.servlet.http.HttpServletRequest request)
        Description copied from interface: IPathCacheService
        Constructs a cache key
        Specified by:
        getKey in interface IPathCacheService
        Parameters:
        strXPageName - the XPage name
        nMode - the mode
        request - the request
        Returns:
        the cache key, or null if for instance the cache is not enabled
      • getKey

        public java.lang.String getKey​(java.lang.String strXPageName,
                                       int nMode,
                                       java.lang.String strTitlesUrls,
                                       javax.servlet.http.HttpServletRequest request)
        Description copied from interface: IPathCacheService
        Constructs a cache key
        Specified by:
        getKey in interface IPathCacheService
        Parameters:
        strXPageName - the XPage name
        nMode - the mode
        strTitlesUrls - list of links (url and titles)
        request - the request the request
        Returns:
        the cache key, or null if for instance the cache is not enabled
      • putInCache

        public void putInCache​(java.lang.String strKey,
                               java.lang.String path)
        Description copied from interface: IPathCacheService
        Put a path in cache
        Specified by:
        putInCache in interface IPathCacheService
        Parameters:
        strKey - the cache key
        path - the path html