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:
parent
acd1f0fa64
commit
6229709825
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user