bugfix: cacheNullValue config in RefreshCache does not work
@@ -148,8 +148,10 @@ public class RefreshCache<K, V> extends LoadingCache<K, V> {
CacheLoader<K, V> loader = config.getLoader();
loader = CacheUtil.createProxyLoader(cache, loader, eventConsumer);
V v = loader.load(key);
+ if (v != null || config.isCacheNullValue()) {
cache.PUT(key, v);
}
+ }
private void externalLoad(final Cache concreteCache, final long currentTime)
throws Throwable {
