Clears the cache.
()
| 405 | * Clears the cache. |
| 406 | */ |
| 407 | public void clear() { |
| 408 | synchronized (entries_) { |
| 409 | for (final Entry entry : entries_.values()) { |
| 410 | if (entry.response_ != null) { |
| 411 | entry.response_.cleanUp(); |
| 412 | } |
| 413 | } |
| 414 | entries_.clear(); |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | /** |
| 419 | * Removes outdated entries from the cache. |