|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2019 the original author or authors. |
|
|
|
|
* Copyright 2002-2023 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -82,12 +82,12 @@ public abstract class AbstractCacheInvoker {
@@ -82,12 +82,12 @@ public abstract class AbstractCacheInvoker {
|
|
|
|
|
* Execute {@link Cache#put(Object, Object)} on the specified {@link Cache} |
|
|
|
|
* and invoke the error handler if an exception occurs. |
|
|
|
|
*/ |
|
|
|
|
protected void doPut(Cache cache, Object key, @Nullable Object result) { |
|
|
|
|
protected void doPut(Cache cache, Object key, @Nullable Object value) { |
|
|
|
|
try { |
|
|
|
|
cache.put(key, result); |
|
|
|
|
cache.put(key, value); |
|
|
|
|
} |
|
|
|
|
catch (RuntimeException ex) { |
|
|
|
|
getErrorHandler().handleCachePutError(ex, cache, key, result); |
|
|
|
|
getErrorHandler().handleCachePutError(ex, cache, key, value); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|