Class InterfaceInstanceHtmlCache<T>


  • public class InterfaceInstanceHtmlCache<T>
    extends PortalCache<T>
    Cache implementation for serviceInterfaceInstanceHtmlCache to support timeout expiration.
    Since:
    7.0.0
    Version:
    $Revision$ $Date$
    • Constructor Detail

      • InterfaceInstanceHtmlCache

        public InterfaceInstanceHtmlCache​(java.lang.String cacheId)
    • Method Detail

      • get

        public T get​(java.lang.String key,
                     int maxAge)
        Returns the value of the key if the maxAge has not expired since the last put in the cache for the current key.
        Overrides:
        get in class PortalCache<T>
        Parameters:
        key - of the value to be retrieved.
        maxAge - in seconds since the last put in the cache. If 0 or a lower number is passed as parameter, will consider that cache does not timeout.
        Returns:
        html in cache for the given key.
        Since:
        7.0.0