From c277aa34d2716eb927113bcb29c6abdd690636e7 Mon Sep 17 00:00:00 2001 From: fzdwx Date: Fri, 28 Jul 2023 19:27:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E6=B3=9B=E5=9E=8B?= =?UTF-8?q?=E6=A0=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/noear/solon/cache/caffeine/CaffeineCacheService.java | 2 +- .../src/main/java/org/noear/solon/data/cache/CacheService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/solon-projects/solon-base-extend/solon.cache.caffeine/src/main/java/org/noear/solon/cache/caffeine/CaffeineCacheService.java b/solon-projects/solon-base-extend/solon.cache.caffeine/src/main/java/org/noear/solon/cache/caffeine/CaffeineCacheService.java index da83a8c4e3..042bb431d3 100644 --- a/solon-projects/solon-base-extend/solon.cache.caffeine/src/main/java/org/noear/solon/cache/caffeine/CaffeineCacheService.java +++ b/solon-projects/solon-base-extend/solon.cache.caffeine/src/main/java/org/noear/solon/cache/caffeine/CaffeineCacheService.java @@ -87,7 +87,7 @@ public Object get(String key) { } @Override - public T getOrStore(String key, int seconds, Supplier supplier) { + public T getOrStore(String key, int seconds, Supplier supplier) { return (T) client.get(key, (k) -> supplier.get()); } } diff --git a/solon-projects/solon-base/solon.data/src/main/java/org/noear/solon/data/cache/CacheService.java b/solon-projects/solon-base/solon.data/src/main/java/org/noear/solon/data/cache/CacheService.java index 762a5eab48..21a27e66b2 100644 --- a/solon-projects/solon-base/solon.data/src/main/java/org/noear/solon/data/cache/CacheService.java +++ b/solon-projects/solon-base/solon.data/src/main/java/org/noear/solon/data/cache/CacheService.java @@ -40,7 +40,7 @@ public interface CacheService { * * @since 1.7 */ - default T getOrStore(String key, int seconds, Supplier supplier) { + default T getOrStore(String key, int seconds, Supplier supplier) { Object obj = get(key); if (obj == null) { obj = supplier.get();