public interface ICacheManager
| Modifier and Type | Method and Description |
|---|---|
void |
clearAll()
清除所有缓存
|
void |
clearByKey(String key)
清除对应缓存
|
Set<String> |
getAllKeys()
获取所有key
|
Map<String,EntityCache> |
getCacheAll()
获取所有缓存
|
EntityCache |
getCacheByKey(String key)
获取对应缓存
|
Object |
getCacheDataByKey(String key)
获取对应缓存
|
boolean |
isContains(String key)
判断是否在缓存中
|
boolean |
isTimeOut(String key)
缓存是否超时失效
|
void |
putCache(String key,
EntityCache cache)
存入缓存
|
void |
putCache(String key,
Object datas,
long timeOut)
存入缓存
|
void putCache(String key, EntityCache cache)
key - 键cache - cache实体void putCache(String key, Object datas, long timeOut)
key - 键datas - 值数据timeOut - 过期时间EntityCache getCacheByKey(String key)
key - 键Map<String,EntityCache> getCacheAll()
boolean isContains(String key)
key - 键void clearAll()
void clearByKey(String key)
key - 键boolean isTimeOut(String key)
key - 键Copyright © 2020. All rights reserved.