public class RedisCacheObject<V extends java.io.Serializable> extends AbstractCacheObject<V>
cacheConfiguration, cacheObjectDataLoader, logger, tenantId
statistics
isCacheDisabled
构造器和说明 |
---|
RedisCacheObject(java.lang.String group,
java.lang.String name,
CacheConfiguration cacheConfiguration,
ObjectDataLoader<V> dataLoader,
java.lang.Boolean isRestartReload) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
allowRedisFlush()
检查是否按需或者可以补偿回来
|
void |
clear()
清除所有缓存项。
|
void |
clearAllTenantKey() |
V |
get()
取得缓存的值。
|
java.lang.String |
getGroupCacheKey()
当前组下包含的 cacheName 集合
|
boolean |
needConsistent()
是否需要保持一级缓存一致性
|
int |
set(V o)
设置缓存的值。
|
int |
size()
该方法提供的为本地大小,不代表Redis缓存大小,谨慎使用
Returns the number of elements in this list.
|
getCacheObjectDataLoader, isEmpty, setObjectDataLoader
checkBatchCacheMiss, checkBatchInProtectCache, checkCacheMiss, checkInProtectCache, clearProtectCache, getCacheKey, getFullName, getGroup, getName, getStatistics, invalidateProtectCache, invalidateProtectCache, setBatchProtectCache, setProtectCache, setProtectDataExpire
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFullName, getGroup, getName, getStatistics
public RedisCacheObject(java.lang.String group, java.lang.String name, CacheConfiguration cacheConfiguration, ObjectDataLoader<V> dataLoader, java.lang.Boolean isRestartReload)
public void clearAllTenantKey()
public java.lang.String getGroupCacheKey()
public int set(V o)
CacheObject
o
- 缓存值public V get()
CacheObject
public int size()
GroupCacheable
public void clear()
GroupCacheable
public boolean allowRedisFlush()
GroupCacheable
public boolean needConsistent()
GroupCacheable