public interface CacheTagsService extends CacheService
| 限定符和类型 | 方法和说明 |
|---|---|
default <T> T |
getOrStoreTag(String key,
Class<T> clz,
int seconds,
Supplier<T> supplier,
String... tags)
获取或者存储
|
default <T> T |
getOrStoreTag(String key,
Type type,
int seconds,
Supplier<T> supplier,
String... tags)
获取或者存储
|
void |
removeTag(String... tags)
移除
|
void |
storeTag(String key,
Object obj,
int seconds,
String... tags)
保存
|
get, get, getOrStore, remove, storedefault <T> T getOrStoreTag(String key, Type type, int seconds, Supplier<T> supplier, String... tags)
key - 缓存键seconds - 缓存秒数supplier - Represents a supplier of results.tags - 缓存标签default <T> T getOrStoreTag(String key, Class<T> clz, int seconds, Supplier<T> supplier, String... tags)
key - 缓存键seconds - 缓存秒数supplier - Represents a supplier of results.tags - 缓存标签void removeTag(String... tags)
tags - 缓存标签Copyright © 2024. All rights reserved.