| org.mmbase.cache.QueryResultCache
All known Subclasses: org.mmbase.cache.MultilevelCache, org.mmbase.cache.RelatedNodesCache, org.mmbase.cache.NodeListCache, org.mmbase.cache.AggregatedResultCache,
QueryResultCache | abstract public class QueryResultCache extends Cache> implements NodeEventListener,RelationEventListener(Code) | | This cache provides a base implementation to cache the result of
SearchQuery's. Such a cache links a SearchQuery object to a list of
MMObjectNodes. A cache entry is automaticly invalidated if arbitrary node of
one of the types present in the SearchQuery is changed (,created or deleted).
This mechanism is not very subtle but it is garanteed to be correct. It means
though that your cache can be considerably less effective for queries
containing node types from which often node are edited.
author: Daniel Ockeloen author: Michiel Meeuwissen author: Bunst Eunders version: $Id: QueryResultCache.java,v 1.45 2007/09/17 16:53:01 pierre Exp $ since: MMBase-1.7 See Also: org.mmbase.storage.search.SearchQuery |
QueryResultCache | QueryResultCache(int size)(Code) | | |
addReleaseStrategy | public void addReleaseStrategy(ReleaseStrategy releaseStrategy)(Code) | | This method lets you add a release strategy to the cache. It will in fact
be added to ChainedReleaseStrategy , which
is the default base release strategy.
Parameters: releaseStrategy - A releaseStrategy to add. |
clear | public void clear()(Code) | | |
remove | public synchronized List<MMObjectNode> remove(SearchQuery key)(Code) | | Removes an object from the cache. It alsos remove the watch from the
observers which are watching this entry.
Parameters: key - A SearchQuery object. |
|
|