This commit is contained in:
redkale
2023-12-26 18:41:12 +08:00
parent 1d80041c16
commit 9c64cde003
2 changed files with 4 additions and 4 deletions

View File

@@ -66,8 +66,7 @@ public interface CacheManager {
/**
* 本地获取字符串缓存数据, 过期返回null
*
* @param hash 缓存hash
* @param key 缓存键
* @param key 缓存键
*
* @return 数据值
*/
@@ -94,7 +93,6 @@ public interface CacheManager {
* 本地获取缓存数据, 过期返回null
*
* @param <T> 泛型
* @param hash 缓存hash
* @param key 缓存键
* @param type 数据类型
* @param nullable 是否缓存null值
@@ -444,7 +442,7 @@ public interface CacheManager {
* @return void
*/
default <T> CompletableFuture<Void> remoteSetAsync(String key, Type type, T value, Duration expire) {
return remoteSetAsync(DEFAULT_HASH, type, value, expire);
return remoteSetAsync(DEFAULT_HASH, key, type, value, expire);
}
/**

View File

@@ -12,6 +12,7 @@ import org.redkale.asm.AsmDepends;
* 详情见: https://redkale.org
*
* @author zhangjx
* @param <T> 泛型
*
* @since 2.8.0
*/
@@ -23,6 +24,7 @@ public interface ThrowSupplier<T> {
* Gets a result.
*
* @return a result
* @throws java.lang.Throwable
*/
T get() throws Throwable;