Set maxCacheAgeSecs to 3600 by default.

Co-Authored-By: os222
This commit is contained in:
Gleb Koval 2024-11-19 15:23:59 +00:00
parent 5f731c1ab2
commit 2f9ba36ff2
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
1 changed files with 2 additions and 1 deletions

View File

@ -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() {}