com.arsdigita.search
Interface ResultCache

All Known Implementing Classes:
TimedResultCache

public interface ResultCache

A simple interface for caching sets

See Also:
CachedResultSet

Method Summary
 ResultSet get(QuerySpecification query)
          Retrieves a result set from the cache
 void put(QuerySpecification query, ResultSet results)
          Stores a result set in the cache
 

Method Detail

put

public void put(QuerySpecification query,
                ResultSet results)
Stores a result set in the cache

Parameters:
query - the query to store results for
results - the results to cache

get

public ResultSet get(QuerySpecification query)
Retrieves a result set from the cache

Parameters:
query - the query to get results for
Returns:
the cached result set, or null


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC