public interface CacheAPI
| 限定符和类型 | 方法和说明 |
|---|---|
String |
addSys(String key)
加入系统标志缓存
|
String |
get(String key)
传入key获取缓存json,需要用fastjson转换为对象
|
List<CacheBean> |
getCacheBeanByPre(String pre)
通过前缀获取缓存信息
|
boolean |
isEnabled()
是否启用缓存
|
List<CacheBean> |
listAll()
获取所有缓存对象信息
|
Long |
remove(String... keys)
移除多个缓存
|
Long |
remove(String key)
移除单个缓存
|
Long |
removeByPre(String pre)
按前缀移除缓存
|
void |
set(String key,
Object value,
int expireMin)
保存缓存
|
void |
set(String key,
Object value,
int expireMin,
String desc)
保存缓存
|
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.