public abstract class AbstractGroupCacheable<K> extends java.lang.Object implements GroupCacheable
限定符和类型 | 字段和说明 |
---|---|
protected CacheStatistics |
statistics |
isCacheDisabled
构造器和说明 |
---|
AbstractGroupCacheable(java.lang.String group,
java.lang.String name) |
限定符和类型 | 方法和说明 |
---|---|
void |
checkBatchCacheMiss(java.util.Collection<K> keys)
检查缓存miss 是否超出限定频次
|
java.util.Set<K> |
checkBatchInProtectCache(java.util.Collection<K> keys) |
void |
checkCacheMiss(K key)
检查缓存miss 是否超出限定频次
|
boolean |
checkInProtectCache(K key)
从保护缓存中判断 key是否在缓存保护清单中.
|
void |
clearProtectCache()
将所有key 从缓存保护清单中移除.
|
protected java.lang.String |
getCacheKey() |
java.lang.String |
getFullName() |
java.lang.String |
getGroup()
取得缓存所属的组。
|
java.lang.String |
getName()
取得缓存名称。
|
CacheStatistics |
getStatistics()
获取缓存统计对象。
|
void |
invalidateProtectCache(java.util.Collection<K> keys)
将key 从缓存保护清单中移除.
|
void |
invalidateProtectCache(K key)
将key 从缓存保护清单中移除.
|
void |
setBatchProtectCache(java.util.Collection<K> keys)
将key放入缓存保护清单中.
|
void |
setProtectCache(K key)
将key放入缓存保护清单中.
|
void |
setProtectDataExpire(int expireTime)
设置缓存穿透防护清单 失效时间(单位:s)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowRedisFlush, clear, isEmpty, needConsistent, size
protected transient CacheStatistics statistics
public AbstractGroupCacheable(java.lang.String group, java.lang.String name)
public void setProtectDataExpire(int expireTime)
public void checkCacheMiss(K key)
public void checkBatchCacheMiss(java.util.Collection<K> keys)
public boolean checkInProtectCache(K key)
public java.util.Set<K> checkBatchInProtectCache(java.util.Collection<K> keys)
public void setProtectCache(K key)
public void setBatchProtectCache(java.util.Collection<K> keys)
public void invalidateProtectCache(K key)
public void invalidateProtectCache(java.util.Collection<K> keys)
public void clearProtectCache()
protected java.lang.String getCacheKey()
public java.lang.String getGroup()
GroupCacheable
getGroup
在接口中 GroupCacheable
public java.lang.String getName()
GroupCacheable
getName
在接口中 GroupCacheable
public CacheStatistics getStatistics()
GroupCacheable
getStatistics
在接口中 GroupCacheable
public java.lang.String getFullName()
getFullName
在接口中 GroupCacheable