1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-09 22:09:47 -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); 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() { public synchronized void clearAll() {
manager.clearAll(); manager.clearAll();