1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

Add flushAll() method for testing

This commit is contained in:
Reinhard Pointner 2019-02-18 15:53:49 +07:00
parent acd1f0fa64
commit 6229709825

View File

@ -44,6 +44,16 @@ public class CacheManager {
return new Cache(manager.getCache(name), type);
}
public synchronized void flushAll() {
for (String n : manager.getCacheNames()) {
try {
manager.getCache(n).flush();
} catch (Exception e) {
debug.warning(e::toString);
}
}
}
public synchronized void clearAll() {
manager.clearAll();