Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 package pt.webdetails.cda.cache;
 
 
public interface IQueryCache {
  
  
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.
  public TableModel getTableModel(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