Skip to content

Commit

Permalink
remove future before setting value by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tootedom committed Sep 25, 2016
1 parent 7894a72 commit 5c92c94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public abstract class MemcachedCacheConfigBuilder<T extends MemcachedCacheConfig
private String staleCachePrefix = "stale";
private int staleMaxCapacity = -1;
private Duration staleCacheMemachedGetTimeout = Duration.ZERO;
private boolean removeFutureFromInternalCacheBeforeSettingValue = false;
private boolean removeFutureFromInternalCacheBeforeSettingValue = true;
private boolean hashKeyPrefix = true;
private Duration waitForRemove = Duration.ZERO;
private MetricRecorder metricRecorder = new NoOpMetricRecorder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,7 @@ public void testDoNotUseCachedValue() {
.setProtocol(ConnectionFactoryBuilder.Protocol.TEXT)
.setWaitForMemcachedSet(true)
.setKeyHashType(KeyHashingType.SHA256_UPPER)
.setRemoveFutureFromInternalCacheBeforeSettingValue(true)
.setMetricsRecorder(new YammerMetricsRecorder(registry))
.buildMemcachedConfig()
);
Expand Down

0 comments on commit 5c92c94

Please sign in to comment.