public class CacheTags extends Object
| 构造器和说明 |
|---|
CacheTags(CacheService caching) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<String> |
$get(String tagKey) |
protected void |
$set(String tagKey,
List<String> value) |
void |
add(String tag,
String targetCacheKey)
为缓存添加一个标签
|
CacheTags |
remove(String tag)
移除标签相关的所有缓存
|
protected String |
tagKey(String tag) |
void |
update(String tag,
Object newValue,
int seconds)
更新标签相关的所有缓存
|
public CacheTags(CacheService caching)
Copyright © 2021. All rights reserved.