public interface CacheService
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
get(String key,
Class<T> type)
获取
|
<T> T |
get(String key,
Type type)
获取
|
default <T> T |
getOrStore(String key,
Type type,
int seconds,
Supplier<T> supplier)
获取或者存储
|
void |
remove(String key)
移除
|
void |
store(String key,
Object obj,
int seconds)
保存
|
Copyright © 2025. All rights reserved.