Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package pt.webdetails.cda.cache;
 
 
 
 public interface IQueryCache {
 
//  /**
//   * Stores element in cache.
//   * @param key key
//   * @param table element to store.
//   * @param ttlSec time to live in seconds
//   */
//  public void putTableModel(TableCacheKey key, TableModel table, int ttlSec);
//  
  
Stores element in cache.

Parameters:
key key
table element to store.
ttlSec time to live in seconds
cacheInfo extra information for cache items that doesn't affect cache comparison
  public void putTableModel(TableCacheKey keyTableModel tableint ttlSecExtraCacheInfo cacheInfo);
  
  
  

Parameters:
key the key to retrieve.
Returns:
TableModel associated with key.
  
//  /**
//   * 
//   * @param key the key to retrieve.
//   * @return <code>TableModel</code> associated with key.
//   */
//  public TableModel getTableModelQuietly(TableCacheKey key);
  
  
Removes element with given key from cache.

Parameters:
key
Returns:
true if element existed.
  public boolean remove(TableCacheKey key);
  
  
Clears all elements that match given IDs

Parameters:
cdaSettingsId If null, deletes everything (same as clearCache)
dataAccessId Only used if cdaSettingsId is also provided;null matches all
Returns:
Number of deleted entries
  public int removeAll(String cdaSettingsIdString dataAccessId);
  
  
Removes all elements from cache.
  public void clearCache();
  
  

Returns:
all keys in cache;
  
//  
  
  public void shutdownIfRunning();
  
New to GrepCode? Check out our FAQ X