Interface ICacheDataProvider<T>

  • Type Parameters:
    T - the type of the data provided.

    public interface ICacheDataProvider<T>
    Provides data for a PortalCache.
    Since:
    4.2.0
    Version:
    $Revision: 9601 $ $Date: 2008-07-18 15:38:17 -0300 (Fri, 18 Jul 2008) $
    See Also:
    PortalCache.fetch(String)
    • Method Detail

      • loadData

        T loadData​(String key)
            throws PortalException
        Returns the data that is to be cached under the specified key.

        Note that the data returned may be a null value, and this information will be cached. In this scenario, it is also necessary to evict the key from the cache when a data is added for it in the original storage (otherwise only update and delete operations would require a eviction).

        Parameters:
        key - the key.
        Returns:
        the data.
        Throws:
        PortalException
        Since:
        4.2.0