public abstract class JbootCacheBase extends Object implements JbootCache
| 限定符和类型 | 字段和说明 |
|---|---|
private ThreadLocal<String> |
CACHE_NAME_PREFIX_TL |
protected JbootCacheConfig |
config |
private Set<String> |
ignoreThreadCacheNames |
| 构造器和说明 |
|---|
JbootCacheBase(JbootCacheConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addThreadCacheNamePrefixIngore(String cacheName) |
protected String |
buildCacheName(String cacheName)
构建缓存名称
|
void |
clearThreadCacheNamePrefix() |
JbootCacheConfig |
getConfig() |
protected void |
println(String debugInfo) |
void |
refresh(String cacheName) |
void |
refresh(String cacheName,
Object key) |
boolean |
removeThreadCacheNamePrefixIngore(String cacheName) |
JbootCache |
setThreadCacheNamePrefix(String cacheNamePrefix) |
protected JbootCacheConfig config
private Set<String> ignoreThreadCacheNames
private ThreadLocal<String> CACHE_NAME_PREFIX_TL
public JbootCacheBase(JbootCacheConfig config)
public JbootCacheConfig getConfig()
getConfig 在接口中 JbootCachepublic JbootCache setThreadCacheNamePrefix(String cacheNamePrefix)
setThreadCacheNamePrefix 在接口中 JbootCachepublic void clearThreadCacheNamePrefix()
clearThreadCacheNamePrefix 在接口中 JbootCachepublic boolean addThreadCacheNamePrefixIngore(String cacheName)
addThreadCacheNamePrefixIngore 在接口中 JbootCachepublic boolean removeThreadCacheNamePrefixIngore(String cacheName)
removeThreadCacheNamePrefixIngore 在接口中 JbootCacheprotected String buildCacheName(String cacheName)
cacheName - public void refresh(String cacheName, Object key)
refresh 在接口中 JbootCachepublic void refresh(String cacheName)
refresh 在接口中 JbootCacheCopyright © 2024. All rights reserved.