Package lumis.portal.cache
Interface ICacheDataProvider<T>
-
- Type Parameters:
T
- the type of the data provided.
public interface ICacheDataProvider<T>
Provides data for aPortalCache
.- Since:
- 4.2.0
- Version:
- $Revision$ $Date$
- See Also:
PortalCache.fetch(String)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
loadData(java.lang.String key)
Returns the data that is to be cached under the specified key.
-
-
-
Method Detail
-
loadData
T loadData(java.lang.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
-
-