use of lucee.runtime.config.Password in project Lucee by lucee.
the class CacheRegionRemove method _call.
static String _call(PageContext pc, String cacheName, String strWebAdminPassword) throws PageException {
Password webAdminPassword = CacheUtil.getPassword(pc, strWebAdminPassword, false);
try {
XMLConfigAdmin adminConfig = XMLConfigAdmin.newInstance((ConfigWebImpl) pc.getConfig(), webAdminPassword);
adminConfig.removeCacheConnection(cacheName);
adminConfig.storeAndReload();
} catch (Exception e) {
throw Caster.toPageException(e);
}
return null;
}
Aggregations