* @return 0 as it always succeeds. Note that the cache may not be empty
* after the flush has completed if concurrent requests cause new entries
* to be inserted as the flush is proceeding.
*/
public HTTPCache getHTTPCache() {
return new HTTPCache() {
public int flushCache(String filterPattern) {
if (logger.isDebugEnabled()) {
logger.debug("Flushing the entire cache.");
}
cache.getRootGroup().flush(null);