From 608ace54ee9a0df77236450c2874f7a9af40cfdf Mon Sep 17 00:00:00 2001 From: brido4125 Date: Wed, 17 Apr 2024 11:19:34 +0900 Subject: [PATCH] INTERNAL: Change timeout value to parent property. --- .../java/net/spy/memcached/plugin/FrontCacheGetFuture.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/net/spy/memcached/plugin/FrontCacheGetFuture.java b/src/main/java/net/spy/memcached/plugin/FrontCacheGetFuture.java index 65ca754c0..955a3260c 100644 --- a/src/main/java/net/spy/memcached/plugin/FrontCacheGetFuture.java +++ b/src/main/java/net/spy/memcached/plugin/FrontCacheGetFuture.java @@ -45,6 +45,13 @@ public FrontCacheGetFuture(LocalCacheManager localCacheManager, String key, GetF this.key = key; } + @Override + public T get() throws InterruptedException, ExecutionException { + T t = parent.get(); + localCacheManager.put(key, t); + return t; + } + @Override public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {