cache = createTemp(new File(work.getWorkingDirectory()));
store = new TemporaryStore(cache, false);
TimeoutOption timeoutOption = getSingleOption(TimeoutOption.class);
if (timeoutOption != null) {
timeout = new RelativeTimeout(timeoutOption.getTimeout());
}
else {
timeout = RelativeTimeout.TIMEOUT_DEFAULT;
}
clean = getSingleOption(CleanCachesOption.class);