lumis.portal.cache
Interface ICacheDataProvider<T>

Package class diagram package ICacheDataProvider
Type Parameters:
T - the type of the data provided.

public interface ICacheDataProvider<T>

Provides data for a PortalCache.

Since:
4.2.0
See Also:
PortalCache.fetch(String)

Method Summary
 T loadData(String key)
          Returns the data that is to be cached under the specified key.
 

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


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.