String host = ERXProperties.stringForKeyWithDefault("er.caching.server.host", WOApplication.application().host());
daemon.setAddr(new InetSocketAddress(host, port));
daemon.setIdleTime(50);
daemon.setVerbose(true);
daemon.start();
log.info("Server started: " + host + ":" + port + " maxItems=" + maxItems + " maxMemory=" + maxMemory);
}
} catch (IOException e) {
throw NSForwardException._runtimeExceptionForThrowable(e);
}