Skip to content

Commit 1c8aec5

Browse files
pierventrekuujo
authored andcommitted
Plugs-in the cache config
1 parent 21281ee commit 1c8aec5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/io/atomix/value/impl/DefaultAtomicValueBuilder.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public CompletableFuture<AtomicValue<E>> buildAsync() {
4242
// Underlay value which wraps the gRPC "Value"
4343
AsyncAtomicValue<E> value = new TranscodingAsyncAtomicValue<>(rawValue, encoder, decoder);
4444
// If config is enabled we further decorate with the caching wrap
45-
// if (response.hasConfig() && response.getConfig().hasCache() &&
46-
// response.getConfig().getCache().getEnabled()) {
47-
value = new CachingAsyncAtomicValue<>(value);
48-
// }
45+
if (response.hasConfig() && response.getConfig().hasCache() &&
46+
response.getConfig().getCache().getEnabled()) {
47+
value = new CachingAsyncAtomicValue<>(value);
48+
}
4949
return value.sync();
5050
});
5151
}

0 commit comments

Comments
 (0)