Set maxCacheAgeSecs to 3600 by default.
Co-Authored-By: os222
This commit is contained in:
parent
5f731c1ab2
commit
2f9ba36ff2
|
@ -1,9 +1,10 @@
|
||||||
package ic.doc;
|
package ic.doc;
|
||||||
|
|
||||||
|
// Builder for CachedWeatherForecaster with default unlimited cache size and 1 hour cache age.
|
||||||
public class CachedWeatherForecasterBuilder {
|
public class CachedWeatherForecasterBuilder {
|
||||||
private WeatherForecaster forecaster;
|
private WeatherForecaster forecaster;
|
||||||
private Integer maxCacheSize = null;
|
private Integer maxCacheSize = null;
|
||||||
private Integer maxCacheAgeSecs = null;
|
private Integer maxCacheAgeSecs = 3600;
|
||||||
|
|
||||||
private CachedWeatherForecasterBuilder() {}
|
private CachedWeatherForecasterBuilder() {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue