Interface ICacheMultiDataProvider<T>

    • Method Detail

      • loadData

        java.util.Collection<CacheItem<T>> loadData​(ICacheMultiDataProvider.IRequest request)
                                             throws PortalException
        Returns the data to be loaded into the cache.
        Parameters:
        request - a request object containing information about the requested data.
        Returns:
        a collection of cache items to be cached. If a cache item for the requested key is not present in the returned collection, it will be assumed its value is getDefaultValue().
        Throws:
        PortalException
        Since:
        10.0.0
      • getDefaultValue

        default T getDefaultValue()
        The value to use for requested keys not returned by loadData(IRequest).
        Returns:
        the value.
        Since:
        10.0.0