use of lucee.commons.io.cache.CacheEntryFilter in project Lucee by lucee.
the class CacheUtil method remove.
public static void remove(ConfigWeb config, CacheConnection cc) throws Throwable {
Cache c = cc.getInstance(config);
// FUTURE no reflection needed
Method remove = null;
try {
remove = c.getClass().getMethod("remove", new Class[0]);
} catch (Exception ioe) {
c.remove((CacheEntryFilter) null);
return;
}
try {
remove.invoke(c, new Object[0]);
} catch (InvocationTargetException e) {
throw e.getTargetException();
}
}
Aggregations