We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2af06d commit 1c8cc73Copy full SHA for 1c8cc73
src/main/java/org/springframework/data/redis/cache/RedisCache.java
@@ -293,11 +293,7 @@ public CompletableFuture<ValueWrapper> retrieve(Object key) {
293
@SuppressWarnings("unchecked")
294
public <T> CompletableFuture<T> retrieve(Object key, Supplier<CompletableFuture<T>> valueLoader) {
295
296
- if (!getCacheWriter().supportsAsyncRetrieve()) {
297
- throw new UnsupportedOperationException(CACHE_RETRIEVAL_UNSUPPORTED_OPERATION_EXCEPTION_MESSAGE);
298
- }
299
-
300
- return retrieveValue(key).thenCompose(wrapper -> {
+ return retrieve(key).thenCompose(wrapper -> {
301
302
if (wrapper != null) {
303
return CompletableFuture.completedFuture((T) wrapper.get());
0 commit comments