Class InterfaceInstanceHtmlCache<T>


  • public class InterfaceInstanceHtmlCache<T>
    extends PortalCache<T>
    Cache implementation for serviceInterfaceInstanceHtmlCache to support timeout expiration.
    Since:
    7.0.0
    Version:
    $Revision: 21231 $ $Date: 2018-04-24 19:34:27 -0300 (Tue, 24 Apr 2018) $
    • Constructor Detail

      • InterfaceInstanceHtmlCache

        public InterfaceInstanceHtmlCache​(String cacheId)
    • Method Detail

      • get

        public T get​(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.
        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