From 2f9ba36ff259fa1fbb630d94b71d1e396b24eaa2 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Tue, 19 Nov 2024 15:23:59 +0000 Subject: [PATCH] Set maxCacheAgeSecs to 3600 by default. Co-Authored-By: os222 --- src/main/java/ic/doc/CachedWeatherForecasterBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/ic/doc/CachedWeatherForecasterBuilder.java b/src/main/java/ic/doc/CachedWeatherForecasterBuilder.java index 1bb314e..2b18276 100644 --- a/src/main/java/ic/doc/CachedWeatherForecasterBuilder.java +++ b/src/main/java/ic/doc/CachedWeatherForecasterBuilder.java @@ -1,9 +1,10 @@ package ic.doc; +// Builder for CachedWeatherForecaster with default unlimited cache size and 1 hour cache age. public class CachedWeatherForecasterBuilder { private WeatherForecaster forecaster; private Integer maxCacheSize = null; - private Integer maxCacheAgeSecs = null; + private Integer maxCacheAgeSecs = 3600; private CachedWeatherForecasterBuilder() {}