{ } }
Tree PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.portal.cache
Interface DependencyCache<K,V>
- All Superinterfaces:
- Cache<K,V>, Identifiable
public interface DependencyCache<K,V>- extends Cache<K,V>
Implementations of this interface also support dependency ID's for entries inserted into a cache. These dependencies are used to determine entries that rely on each other and need to be invalidated if one of them gets invalidated.
Here is how to access the caches
com.ibm.com.portal.cache.Cache cache = com.ibm.wps.services.cache.CacheManager.getCacheFactory(). getCache("UNIQUE_NAME_IN_THE_PORTAL_SCOPE");
- See Also:
- Cache, com.ibm.wps.services.cache.CacheManager
Method Summary void put(K key, V value, java.lang.Object[] dependencyIds)
Place an entry in the cache.
Methods inherited from interface com.ibm.portal.cache.Cache clear, get, invalidate, put
Methods inherited from interface com.ibm.portal.Identifiable getObjectID
Method Detail put
void put(K key, V value, java.lang.Object[] dependencyIds)
- Place an entry in the cache. Note that there is no guarantee that the object will actually end up in the cache. The underlying cache implementation can choose not to actually store this key-value pair based on whatever arbitrary conditions it chooses.
Later on invalidating the key from the cache will also invalidate all dependencyIds.
- Parameters:
- key - - the cache key, used to locate the entry on subsequent lookups.
- value - - the object to store in the cache under this key
- dependencyIds - - a set of dependency ids to associate with the cache entry.
Tree PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD