Code example for Cache

Methods: invalidateAll

0
 
  @Override 
  public void remove(String table) {
    Cache<String, String> tableCache = cache.get(table);
    if (tableCache != null) {
      tableCache.invalidateAll();
    } 
  } 
 
  @Override 
  public void removeAll() { 
    if (!enabled)
      return; 
    cache.clear();
  } 
 
  @Override 
  public int count(String table) {
    if (!enabled)
      return -1;